Which of the following displays “Error” when a student ID is less than 1000 or more than 9999?
a. if(stuId < 1000) if(stuId > 9999)
System.out.println("Error");
b. if(stuId < 1000 && stuId > 9999)
System.out.println("Error");
c. if(stuId < 1000)
System.out.println("Error");
else
if(stuId > 9999)
System.out.println("Error");
d. Two of these are correct.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.