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.
Hello
can anyone explain USE OF TWO OBJECTS OF CLASS SCANNER?
how did the second object (scan 2) avoided the '\n'?
and how will scan2 know where to start reading? does it have any relation with keyboard buffer?
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 →
Hello can anyone explain USE OF TWO OBJECTS OF CLASS SCANNER? how did the second object (scan 2) avoided the '\n'? and how will scan2 know where to start reading? does it have any relation with keyboard buffer?