recommit
This commit is contained in:
@@ -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"";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user