Hi,
somebody have a time to look at my code and tell me whats wrong?
package pl.codegym.task.task06.task0614;
import java.util.ArrayList;
/*
Statyczne koty
*/
public class Kot {
public static ArrayList<Kot> koty = new ArrayList<Kot>();
public Kot() {
}
public static void main(String[] args) {
for (int i=0;i<10;i++)
{
Kot kot = new Kot();
koty.add(kot);
}
printKoty();
}
public static void printKoty() {
System.out.println(koty);
}
}