You are viewing a single comment's thread. Return to all comments →
The first nextLine() is for consuming the last newline character, the second is for assigning a value to the String.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Stdin and Stdout II
You are viewing a single comment's thread. Return to all comments →
The first nextLine() is for consuming the last newline character, the second is for assigning a value to the String.