title: Validating an integer or String without try-catch
body: <p>Ok, I'm lost. I am required to figure out how to validate an integer, but for some stupid reason, I can't use the Try-Catch method. I know this is the easiest way and so all the solutions on the internet are using it. </p>
  
  <p>I'm writing in Java. </p>
  
  <p>The deal is this, I need someone to put in an numerical ID and String name. If either one of the two inputs are invalid I must tell them they made a mistake. </p>
  
  <p>Can someone help me? </p>