我刚开始学习java,在试一个例程时遇到的问题,在JDK 1.4.2 Windows 版下
例程如下:
//using a do-while to process a menuselection
class menu {
public static void main (String [] args) {
throws java.io.IOException {
char choice;
do {
System.out.println("help on:");
System.out.println(" 1.if");
......
System.out.prinln("Choose one:");
Choice=(char)System.in.read();
} while (choice <'1'||choice>'5');
......