+ 1
Which JAVA Class allows us to get input from user?
3 Answers
+ 5
1. Scanner
Scanner s = new Scanner(System.in);
String name = s.nextLine();
2. Console
String name = System.console().readline();
3. Buffered Reader
Similar concept with scanner: just declare it and call when getting input.
I personally would prefer Scanner
+ 3
Scanner