Re type the following code and fix any errors. The code should check if userNum is 2. if (userNum = 2) { System.out.println("Num is two"); } else { System.out.println("Num is not two"); } Please post...



Re type the following code and fix any errors. The code should check if userNum is 2.


if (userNum = 2) {


System.out.println("Num is two");


}


else {


System.out.println("Num is not two");


}


Please post in Java



1 import java util Scanner 3 p class D ublic etectT 4 public static void main (String [J args int userNum 03 userNum 2; Your solution goes here 10 return; 12 13
Nov 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here