If you read the API for Scanner, you'll notice a method named nextInt();
Look it up, as It should be sufficient as to what you need.
Scanner API
Type: Posts; User: newbie
If you read the API for Scanner, you'll notice a method named nextInt();
Look it up, as It should be sufficient as to what you need.
Scanner API
Can only use operators such as ==, >=, < on numeric types, and a Scanner object doesn't constitute a numeric type.