Yeah I know its a boring program, but the teacher doesnt want us doing anything exciting for fear we might learn something. He did this to show those in the class who have never programmed, how to do the "for" loop Thanks for the help. The method I wrote to handle bad numbers looks like this:
num = getInt(startHour)
public static int getInt(int hour)
{
while(hour > 12 || hour < 1)
{
JOptionPane.showErrorMessage("Please enter number between 1 and 12");
JOptionPane.showInputDialog("Enter start hour");
}
return hour;
}




