回答編集履歴
2
コードの変更
test
CHANGED
@@ -20,7 +20,9 @@
|
|
20
20
|
|
21
21
|
public static void main(String[] args) {
|
22
22
|
|
23
|
-
String
|
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/
|
49
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/gLKTtr38gX64UBZU)
|
48
50
|
|
49
51
|
```plain
|
50
52
|
|
1
修正
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
|
|