Different Java Scanner for input of different types

后端 未结 5 483
不思量自难忘°
不思量自难忘° 2021-01-16 06:40

Imagine the following scanario: I have a program which ask for an integer input, followed by a String input.

int age=0;
String name;
Scanner sc = new Scanne         


        
5条回答
提交回复
热议问题