public class MenuControlService {
public void choice() {
Scanner in = new Scanner(System.in);
String choice = in.nextLine();
switch (choice) {
case "1":
new PrintAllCurrentRecords().printAllRecord();
break;
case "2":
new PrintAllCurrentRecordsFormatted().printAllFormatted();
break;
字符串choice可以switch吗?不能的啊