Computers and Technology, 22.02.2020 02:48 brookemcelhaney
Find and fix the error in the if-else statement. import java. util. Scanner;
public class NumberChecker {
public static void main (String [] args) {
int userNum;
Scanner scnr = new Scanner(System. in);
userNum = scnr. nextInt(); // Program will be tested with values: 0, 1, 2, 3.
if (userNum = 2) {
System. out. println("Num is equal to two");
}
else {
System. out. println("Num is not two");
}
}
}
Answers: 1
Find and fix the error in the if-else statement. import java. util. Scanner;
public clas...
public clas...
History, 21.07.2019 13:00
Mathematics, 21.07.2019 13:00
Mathematics, 21.07.2019 13:00
Mathematics, 21.07.2019 13:00
Mathematics, 21.07.2019 13:00
Business, 21.07.2019 13:00
Mathematics, 21.07.2019 13:00