質問編集履歴

3

指摘内容の修正

2022/05/18 01:01

投稿

janetto
janetto

スコア7

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
  try {
19
19
  int a = Integer.parseInt(args[0]);
20
20
  int b = Integer.parseInt(args[1]);
21
- Lis<String> set = new ArrayList<String>();
21
+ List<String> set = new ArrayList<String>();
22
22
  set.add(int a);
23
23
  set.add(int b);
24
24
  list.removeAll(set);

2

内容の修正

2022/05/18 00:12

投稿

janetto
janetto

スコア7

test CHANGED
@@ -1 +1 @@
1
- コマンドライン引数同時に削除したい
1
+ コマンドライン引数で配列から同時に削除したい
test CHANGED
File without changes

1

問題編集

2022/05/18 00:10

投稿

janetto
janetto

スコア7

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  public class Main {
12
12
  public static void main(String[] args) {
13
- String[] s = {"", "", "", "", ""};
13
+ String[] s = {"a", "v", "f", "e", "k"};
14
14
  List<String> list = new ArrayList<>(s.length);
15
15
  for (String string : s) {
16
16
  list.add(string);