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.
hi, how do you terminate taking the input from the console.. It kept asking, i print several runs...how do you exactly make the scan.hasNext() condition false through the console
for eg:hello
1 hello
hi
2 hi
how
3 how
how are you
it still taking the input and i want to terminate here.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java End-of-file
You are viewing a single comment's thread. Return to all comments →
hi, how do you terminate taking the input from the console.. It kept asking, i print several runs...how do you exactly make the scan.hasNext() condition false through the console
for eg:hello 1 hello hi 2 hi how 3 how how are you
it still taking the input and i want to terminate here.