5th Jun 2019, 3:48 AM
Mitwel
Mitwel - avatar
2 Answers
+ 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); .......
5th Jun 2019, 8:57 AM
Prokopios Poulimenos
Prokopios Poulimenos - avatar
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);
5th Jun 2019, 9:22 AM
zemiak