Example for do-while
do
{
System.out.println (“Please input month {1-12}”);
month = Integer.parseint(stdin.readLine());
} while ((month < 1) || (month > 12));
Previous slide
Next slide
Back to first slide
View graphic version