//If user's input is a String or a number not within specified range, the program asks the user to reenter
//This method allows the user to enter text even though an integer is expected
public static int intInput(int min, int max)
{
Scanner sc = new Scanner(System.in);
String stringChoice;
int intChoice = 0;
do{
stringChoice = sc.nextLine();
try
{
intChoice = Integer.parseInt(stringChoice);
}
catch (NumberFormatException ex)
{ }
if ((intChoice < min) || (intChoice > max))
System.out.print ("**Invalid input** Re-enter choice: ");
}while ((intChoice < min) || (intChoice > max));
return intChoice;
}