Merge pull request '修改' (#2) from develop into main

main
hnu202326010306 7 days ago
commit 9e482b1030

Binary file not shown.

@ -62,6 +62,7 @@ public class MathExamGenerator {
String input = reader.readLine(); String input = reader.readLine();
if (input == null || input.trim().isEmpty()) { if (input == null || input.trim().isEmpty()) {
System.out.println("输入不能为空,请重新输入");
return; return;
} else if (input.equals("exit")) { } else if (input.equals("exit")) {
isRunning = false; isRunning = false;
@ -191,7 +192,8 @@ public class MathExamGenerator {
isRunning = false; isRunning = false;
break; break;
default: default:
// 继续生成题目,不需要额外操作 System.out.println("无效的选项,请重新输入");
handleUserChoice();
break; break;
} }
} catch (IOException e) { } catch (IOException e) {

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save