Find the Error
What, if anything, is incorrect with the following switch statement:
Scanner input = new Scanner(System.in); int number;
switch (number == input.nextInt % 2) { case 0: System.out.println("Even"); break; default: System.out.println("Odd"); }
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.