51,395
社区成员




public class Student{
...
...
public static boolean Judge(){//判断是否继续输入学生信息
Scanner reader=new Scanner(System.in);
System.out.println("是否继续?其它键继续,ESC结束......");
if(reader.nextByte()==0x1B) //Esc键
return false;
else
try{
System.out.printf("\n\n\n\n\n\n\n\n\n");
}
catch(Exception ex){
System.out.print(ex.toString());
}
return true;
}
}