When I was turn it on IntelliJ everything works, but the task dismissed 4 subsection. The second problem : When i used for(Integer k : lista){ System.out.print(lista.get(k)+" "); } i have somethin like that : Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 97 out of bounds for length 11 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:359) at java.base/java.util.ArrayList.get(ArrayList.java:427) at trzy.main(trzy.java:32) Any suggestion ?