Ask Question
10 September, 22:08

How to check if the next number is an int in java

+3
Answers (1)
  1. 10 September, 23:38
    0
    Id you are using java. util. Scanner; to see if the next number is an int do

    input. hasNextInt ();

    Notice that this returns a bolean.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “How to check if the next number is an int in java ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers