0
Any other way take value from user other than creating scanner object
4 Answers
+ 2
I guess Meharban think about it:
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = null;
while ((line = br.readLine()) != null) {
// do something with line
}
+ 2
Command-line arguments.
It'd make your program non-interactive, though.
0
Buffered Reader class
0
what is this buffered reader ckass