0
How to create scanner for string?
1 Answer
+ 3
But always remember that if we take a String input after an integer input, the String input is just skipped and moves to the next input. So to avoid this we have to again define the nextLine() function. But in BufferedReader there is no such problem.