回答編集履歴

1

strからlineに変更

2018/08/20 09:34

投稿

ruei
ruei

スコア284

test CHANGED
@@ -1,9 +1,9 @@
1
- 次のコードでstr[]に格納されます。
1
+ 次のコードでline[]に格納されます。
2
2
 
3
3
  ```ここに言語を入力
4
4
 
5
5
  Scanner sc=new Scanner(System.in);
6
6
 
7
- String[] str=sc.nextLine().split(",");
7
+ String[] line=sc.nextLine().split(",");
8
8
 
9
9
  ```