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.
Hey I am using nextLine() after nextInt and then then String input.After that again a nextLine.Then double input.Itsnot working.But the nextLine after each input should clear tge newlines and should work.Then y aint this working?Y are we required to write nextLine after int and double inputs before String input only?
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 →
Hey I am using nextLine() after nextInt and then then String input.After that again a nextLine.Then double input.Itsnot working.But the nextLine after each input should clear tge newlines and should work.Then y aint this working?Y are we required to write nextLine after int and double inputs before String input only?