Ask Question
20 June, 19:53

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

+4
Answers (1)
  1. 20 June, 22:45
    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?
Find an answer to your question ✅ “How to check if the next number is an int in java ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers