Version2.0 #4

Merged
hnu202326010425 merged 1 commits from develop into main 5 months ago

@ -98,7 +98,9 @@ public class SysFunc {
while (true) {
System.out.print(BOLD + BLUE + "> " + RESET);
String choice_type = scanner.nextLine();
if (choice_type.length() >= 5 && choice_type.substring(0, 3).equals("切换为") && typeMap.containsKey(choice_type.substring(3))) {
if (choice_type.length() >= 5
&& choice_type.substring(0, 3).equals("切换为")
&& typeMap.containsKey(choice_type.substring(3))) {
type = typeMap.get(choice_type.substring(3));
if (type == 1) {
teacher = new PrimaryTea(teacher.name, teacher.password, teacher.path);

Loading…
Cancel
Save