質問編集履歴
2
解決版コードの編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,5 +36,7 @@
|
|
36
36
|
|
37
37
|
Scanner scanner = new Scanner(System.in);
|
38
38
|
String a = scanner.nextLine();
|
39
|
+
scanner.close();
|
40
|
+
|
39
41
|
int l = a.length();
|
40
42
|
char b = a.charAt(a.length()-1);
|
1
コードの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -28,4 +28,13 @@
|
|
28
28
|
|
29
29
|
**数値を入力してください
|
30
30
|
→12345
|
31
|
-
入力された数値は5桁の12345で、最後の数字は5です。**
|
31
|
+
入力された数値は5桁の12345で、最後の数字は5です。**
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
**__解決しましたありがとうございました__**
|
36
|
+
|
37
|
+
Scanner scanner = new Scanner(System.in);
|
38
|
+
String a = scanner.nextLine();
|
39
|
+
int l = a.length();
|
40
|
+
char b = a.charAt(a.length()-1);
|