This commit is contained in:
2026-09-18 11:30:15 +09:00
parent d46ec83cfd
commit ea4435babe

View File

@@ -131,8 +131,17 @@ public class StringCheck {
public static String inputString () {
Scanner scann = new Scanner(System.in);
try { // day 3 stept 6
String Line = scann.nextLine();
return Line.strip();
}catch(Exception e){
System.out.println("大変申し訳ございません、システム中断");
System.exit(0);
return"";
}
}