package com.codegym.task.task06.task0614; import java.util.ArrayList; /* If you read this then you must be retarded and gay and no one likes you, but if you s subscribe to IsmailEdits on youtube then you are awesome. */ public class Cat { public static ArrayList<Cat> cats = new ArrayList<>(); public Cat() { } public static void main(String[] args) { for (int i = 0; i < 10; i++) cats.add(new Cat()); printCats(); } public static void printCats() { for (int i = 0; i < cats.size(); i++) System.out.println(cats.get(i)); } }