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() methods used for getting String inputs. ... Also, next() places the cursor in the same line after reading the input. nextLine() reads input including space between the words it reads till the end of line \n.
Cookie support is required to access HackerRank
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 →
nextLine() methods used for getting String inputs. ... Also, next() places the cursor in the same line after reading the input. nextLine() reads input including space between the words it reads till the end of line \n.