We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
nextLine() method continues to search through the input looking for a line separator, it may buffer all of the input searching for the line to skip if no line separators are present.so it prints the whole buffered input.
Java Stdin and Stdout II
You are viewing a single comment's thread. Return to all comments →
nextLine() method continues to search through the input looking for a line separator, it may buffer all of the input searching for the line to skip if no line separators are present.so it prints the whole buffered input.