0

What Identifier is compatible with scanner input

I don't know which identifier for storing data like 12 Is compatible with scanner

15th Nov 2017, 9:24 PM
Vojtěch VACH
Vojtěch VACH - avatar
2 Réponses
+ 1
int d; Scanner scan = new Scanner(System.in); d = scan.nextInt(); scan.close(); This is what I would use.
15th Nov 2017, 9:40 PM
John Wells
John Wells - avatar
+ 1
thx
15th Nov 2017, 9:44 PM
Vojtěch VACH
Vojtěch VACH - avatar