What wrong? 0-9 cats displayed...
package com.codegym.task.task06.task0614;
import java.util.ArrayList;
/*
Static cats
*/
public class Cat {
//write your code here
public static ArrayList<Integer> cats = new ArrayList<Integer>();
public Cat() {
for (int i = 0; i<10; i++) {
cats.add(i);
}
}
public static void main(String[] args) {
Cat cat0 = new Cat();
Cat cat1 = new Cat();
Cat cat2 = new Cat();
Cat cat3 = new Cat();
Cat cat4 = new Cat();
Cat cat5 = new Cat();
Cat cat6 = new Cat();
Cat cat7 = new Cat();
Cat cat8 = new Cat();
Cat cat9 = new Cat();
printCats();
}
public static void printCats() {
for (int j = 0; j<10; j++) {
System.out.println(cats.get(j));
}
}
}