The code does not work JAVA
CODE: package Item; import java.util.ArrayList; import java.util.Scanner; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.List; import java.io.File; class List { List <Integer> list = new ArrayList <Integer> (); private int [] numbers; private static int max. Capacity; private int size; List (int max Capacity, int size) { numbers = new int [maxCapacity]; this.maksCapacity = maxCapacity; this.size = size; } / * public int getLiczby () { return this.numbers [10]; } public int getMaksPoamnosc () { return this.maksCapacity; } public int getSize () { return this. size; } * / public int addElement (int j) { for (int i = 0; i <maxCapacity; ++ i) { if (maxCapacity == 0) { } } return max. Capacity; //? } public int find (int search number) { boolean number = false; for (int i = 0; i <size; i ++) { if (numbers [i] == number searched) { number = true; return i; } } if (number = false) { return -1; } return search number; } public String write () { return "size:" + size + "capacity" + max. Capacity + "elements:"; } public int deleted First (int given number) { for (int i = 0; i <size; i ++) { if (numbers [i] == number given) { numbers [i] = 0; } } return givenNumber; } public int deleted Repetition () { for (int i = 0; i <10; i ++) { for (int j = 0; j <10; j ++) { if (the number of [i] == number [j]) { numbers [i] = 0; } } } return max. Capacity; } public int versus () { for (int i = size; i> = 0; i ++) { return numbers [i]; } return max. Capacity; } public static void main (String [] args) / * throws FileNotFoundException * / { List l = new List (max Capacity, max Capacity); / * File file = new File ("List.txt"); Scanner scanner = new Scanner (file); String line1 = scanner.nextLine ();