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.
Some of the other comments already mentioned it, but basically the nextLong() token threw an error, so reading the same token with next() allows us to repeat the token as part of 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 →
Some of the other comments already mentioned it, but basically the nextLong() token threw an error, so reading the same token with next() allows us to repeat the token as part of the error message.