How can I verify that a user enters an integer or alphabetic character in Java?
<p>I am accepting an input from user as an integer using <code>Scanner.nextInt()</code>. How do I verify that he enters an integer, and not an alphabetic character?</p>
