Take a look at the Scanner API for a tutorial on how to parse things: Scanner (Java Platform SE 6)
Type: Posts; User: KevinWorkman
Take a look at the Scanner API for a tutorial on how to parse things: Scanner (Java Platform SE 6)
I'm not sure what you mean. If the next token is not an int, I don't see hasNextInt() returning true.
But the code inside your while loop doesn't make a ton of sense either. Each iteration, you're...
What do you think your while statement is doing?
while(player.hasNext() && player.hasNextInt()){
If I'm understanding you correctly, your Scanner is going to be at a line that has a String...