Can someone explain why it wouldn't pass the 3rd, 4th and 5th requirements?
I got frustrated and copy pasted the solution, just to pass this task.

```
Scanner input = new Scanner(System.in);
ArrayList<Integer> numList = new ArrayList<Integer>();
for (int i = 0; i < 20; i++) {
String s = input.nextLine();
numList.add(Integer.parseInt(s));
}
ArrayList<Integer> divBy3 = new ArrayList<Integer>();
ArrayList<Integer> divBy2 = new ArrayList<Integer>();
ArrayList<Integer> divBy3And2 = new ArrayList<Integer>();
for (int i = 0; i < numList.size(); i++) {
int x = numList.get(i); // gets number index position through each loop
if(x % 3 == 0 && x % 3 != 1 && x % 2 == 0 && x % 2 != 1) {
divBy3And2.add(x);}
else if (x % 3 == 0) {
divBy3.add(x);
}else if (x % 2 == 0) {
divBy2.add(x);
}
}
System.out.print("Divisible by 3: ");
printList(divBy3);
System.out.print("\nDivisible by 2: ");
printList(divBy2);
System.out.print("\nDivisible by 2 and 3: ");
printList(divBy3And2);
}
public static void printList(List<Integer> list) {
for (Integer x : list) {
System.out.print(x + " ");
}
}
}
```

all others that don't go in 2 and/or 3The lists in this code are: divisible by 3 divisible by 2 numbers divisible by two and threeand all other numbers. Numbers simultaneously divisible by 3 and 2 (for example 6) go into both lists.I thought I was supposed to make another list where the number is divisible by both numbers, if that wasn't the case, then my bad. I forgot to comment lines 24 / 26 / 28 here, I actually commented them out during verification!bothlists." This doesn't say that those numbers go into the third list.