Using a scanner object as well.
final int AGE_LO = 0, AGE_HI = 1452;
System.out.print("Age in months? (Rounded to nearest month between 0 and 1452): ");
age = sc.nextInt();
while(age < 0 && age > 1452);
That's a sample of the loop I'm using. I was wondering if there is a way to check for letters/numbers without having to use a String and then check for 1, 2, 3, 4, 5, ...etc. or a, b, c, ....etc.
using a new command for each check, i.e. perhaps something like
ageString.charAt(0) > 9
or similar. We haven't covered exception handling yet, sorry I can't use your suggestion, The E. Thanks for the reply, though.