0
что здесь не так?
2 Respostas
+ 3
First of all , fix the following:
1. Remove package test
2. Modify the line
ArrayList<String> list = new ArrayList<> to
ArrayList<String> list = new ArrayList<String>();
3. Modify the line
Scanner scanner =new Scanner(System.in) to
Scanner scanner =new Scanner(System.in);
.......
0
//package test;
dont use package statement in sololearn
//ArrayList<String> list = new ArrayList<>
ArrayList<String> list = new ArrayList<>(100); // (100);
line 15..:
int one; // or: Integer one;
System.out.println("Enter Number one");
one = scanner.nextInt();
System.out.println(one);