hi,
the book always have code like this for the beginner ..
String status="yes"
do{
......
}while(status.equalsIgnoreCase("yes"));
what if the user enter y? or mistype "yes" to "yse"? the program crash... we can of course use if and else if and else or the switch statement's "default" to output the error message..
however, i am interested to know if there is a fancy way to do it with the do while loop.