0

(spanish) andaba practicando códigos y me paso esto

https://code.sololearn.com/cJ3H7zGuw5mV/?ref=app

6th Jan 2023, 2:25 AM
Lomejor 12
Lomejor 12 - avatar
1 Answer
+ 3
You are printing the scanner object. Try this instead: Scanner xd = new Scanner(System.in); int number = xd.nextInt(); switch(number){ case 1: System.out.println(number); }
6th Jan 2023, 2:44 AM
Tibor Santa
Tibor Santa - avatar