回答編集履歴
2
インデント修正
answer
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
List<String> strList = new ArrayList(Arrays.asList(strArray));
|
10
10
|
for(int i=0; i<args.length; i++) {
|
11
|
-
|
11
|
+
strList.remove(strArray[Integer.parseInt(args[i])]);
|
12
12
|
}
|
13
13
|
|
14
14
|
System.out.println(strList);
|
1
コード簡略化
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
(エラーは考慮していません.)
|
5
5
|
```java
|
6
6
|
public static void main(String[] args) throws Exception {
|
7
|
-
String[] strArray =
|
7
|
+
String[] strArray = {"あ", "い", "う", "え", "お"};
|
8
8
|
|
9
9
|
List<String> strList = new ArrayList(Arrays.asList(strArray));
|
10
10
|
for(int i=0; i<args.length; i++) {
|