0

Any other way take value from user other than creating scanner object

3rd Mar 2017, 3:21 PM
palash poddar
palash poddar - avatar
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 }
3rd Mar 2017, 7:55 PM
TamĂĄs Barta
TamĂĄs Barta - avatar
+ 2
Command-line arguments. It'd make your program non-interactive, though.
3rd Mar 2017, 8:46 PM
Ishani Ray
Ishani Ray - avatar
0
Buffered Reader class
3rd Mar 2017, 3:25 PM
Meharban Singh
Meharban Singh - avatar
0
what is this buffered reader ckass
3rd Mar 2017, 3:28 PM
palash poddar
palash poddar - avatar