回答編集履歴

2

コードの変更

2018/06/17 14:08

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -20,7 +20,9 @@
20
20
 
21
21
  public static void main(String[] args) {
22
22
 
23
- String[] data = {"AA", "BB", "CC", "DD", "BB", "AA"};
23
+ String src = "AA,BB,CC,DD,BB,AA";
24
+
25
+ String[] data = src.split(",");
24
26
 
25
27
 
26
28
 
@@ -44,7 +46,7 @@
44
46
 
45
47
 
46
48
 
47
- **実行結果** [Wandbox](https://wandbox.org/permlink/nRKDewyAXDgji5Vs)
49
+ **実行結果** [Wandbox](https://wandbox.org/permlink/gLKTtr38gX64UBZU)
48
50
 
49
51
  ```plain
50
52
 

1

修正

2018/06/17 14:08

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -46,7 +46,7 @@
46
46
 
47
47
  **実行結果** [Wandbox](https://wandbox.org/permlink/nRKDewyAXDgji5Vs)
48
48
 
49
- ```
49
+ ```plain
50
50
 
51
51
  BBが重複しています。
52
52