Ребят, подскажите, в чем ошибка? Не могу понять....
package com.javarush.task.task07.task0713;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/*
Играем в Jолушку
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<Integer> Top = new ArrayList<Integer>();
ArrayList<Integer> nacelo3 = new ArrayList<Integer>();
ArrayList<Integer> nacelo2 = new ArrayList<Integer>();
ArrayList<Integer> ostalnoeTop = new ArrayList<Integer>();
for (int i = 0; i < 20; i ++){
String s = reader.readLine();
int count = Integer.parseInt(s);
Top.add(count);
if (count % 3 == 0){
nacelo3.add(Top.get(i));
} else if (count % 2 ==0){
nacelo2.add(Top.get(i));
} else if (count % 3 ==0 && count % 2 == 0){
nacelo3.add(count);
nacelo2.add(count);
}else {
ostalnoeTop.add(count);
}
}
printList(nacelo3);
printList(nacelo2);
printList(ostalnoeTop);
}
public static void printList(List<Integer> list) {
for (int i = 0; i < list.size(); i ++){
System.out.println(list.get(i));
}
//напишите тут ваш код
}
}