質問編集履歴
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -68,7 +68,7 @@
|
|
68
68
|
public static String inputNext()
|
69
69
|
{
|
70
70
|
if( sc == null ) sc = new Scanner( new InputStreamReader( System.in ) );
|
71
|
-
else return "";
|
71
|
+
// else return ""; 間違い
|
72
72
|
|
73
73
|
String str = sc.next();
|
74
74
|
if( str == null ) str = "";
|
@@ -181,7 +181,7 @@
|
|
181
181
|
*/
|
182
182
|
public static void scanClose()
|
183
183
|
{
|
184
|
-
sc.close();
|
184
|
+
// sc.close(); 回答を受けコメントアウト
|
185
185
|
sc = null;
|
186
186
|
}
|
187
187
|
}
|
@@ -236,9 +236,10 @@
|
|
236
236
|
JylLog.println( new String( c ) );
|
237
237
|
JylLog.scanClose();
|
238
238
|
|
239
|
+
// String str3 = JylLog.inputNext();
|
239
|
-
|
240
|
+
String str3 = JylLog.input();
|
240
241
|
JylLog.println( str3 );
|
241
|
-
JylLog.scanClose();
|
242
|
+
// JylLog.scanClose();
|
242
243
|
|
243
244
|
String str4 = JylLog.next();
|
244
245
|
JylLog.println( str4 );
|