You are viewing a single comment's thread. Return to all comments →
The while loop runs if there is another input otherwise it just doesn't run
hasNextInt() checks if the next input is an int so the while loop just checks if there is a next int
Seems like cookies are disabled on this browser, please enable them to open this website
Java Stdin and Stdout I
You are viewing a single comment's thread. Return to all comments →
The while loop runs if there is another input otherwise it just doesn't run
hasNextInt() checks if the next input is an int so the while loop just checks if there is a next int