How to take input from buffer reader ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to take input from buffer reader ?

2nd Jun 2017, 9:33 AM
Vallery
Vallery - avatar
2 Answers
+ 19
Adding to @Serena's answer : You have to throw/catch an IO Exception in most of the conditions ... public static void main(String[] args) throws IOException { ... IOException is a checked exception. You must either catch it, or throw it to your calling method. 
2nd Jun 2017, 9:41 AM
Dev
Dev - avatar
+ 6
That was Quick @Serena Thx And well explained.
2nd Jun 2017, 9:35 AM
Vallery
Vallery - avatar