while (in.hasNextLine()) {// 注意while处理多个case
String a = in.nextLine();
.......
.......
}