+ 6
What is easy way to take input in java? Plz explain me.
3 Answers
+ 3
I'll try both of your suggestions.
Thank you for aid.
+ 2
You simply can use Scanner object. Just initialize it with System.in stream.
If you want to go the best way, you should use BufferedReader object. You need initialize once and it's ready to take input.
Don't forget about exceptions!
+ 1
Scanner sc=new Scanner(System.in);
//where system.in will take input from the terminal