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.
long x = sc.nextLong() throws the Exceptions, so the Token (the number) will never get parsed. So he has to parse the number via sc.next() as a String, so its available in the error message.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Datatypes
You are viewing a single comment's thread. Return to all comments →
long x = sc.nextLong() throws the Exceptions, so the Token (the number) will never get parsed. So he has to parse the number via sc.next() as a String, so its available in the error message.