import java.util.*;
class TestCLass {
public static void main(String args[]) {
char choice;
String in;
Scanner myScanner = new Scanner(System.in);
do {
System.out.print("Type Q to Quit: ");
in = myScanner.next();
choice = in.charAt(0);
if(choice == 'Q' || choice == 'q') {
break;
}
else
continue;
}
while(choice != 'Q' || choice != 'q');
}
}
Enjoy.
No replies to this topic
#1
Posted 06 January 2010 - 10:16 AM
|
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









