Problems with do while loops
807598Apr 29 2006 — edited Apr 30 2006basically i am trying to get a program to prompt for a day of the month, this is only a portion of the code and so far it goes to the exception(what i want it to do) but after the exception, it doesnt prompt me again to "enter a month (1-12)". how do i get it to restate the question box???? i have one for month, day , year, leap year, etc also. any help would be great and just remember, im not in advanced java thus far...
do{
int m = Integer.parseInt(JOptionPane.showInputDialog(null,"Please Enter a Month (1-12)..."));
if((m<1)||(m>12))
throw new MonthException("That Isn't an Integer Between 1 and 12!!!");
}
while((m>1)||(m<12));