I changed all the int variables to Strings and got it to work but that doesn't pass some of the tests. Also tried to add another readLine or change the name to no avail. Not understanding what I am supposed to do. Thanks.
package com.codegym.task.task07.task0726;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

/*
Cat code won't compile

*/

public class Solution {
    public final static ArrayList<Cat> CATS = new ArrayList<>();

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        while (true) {
            String name = reader.readLine();
            int age = Integer.parseInt(reader.readLine());
            int weight = Integer.parseInt(reader.readLine());
            int tailLength = Integer.parseInt(reader.readLine());


            String name1 = reader.readLine();
            int age1 = Integer.parseInt(reader.readLine());
            int weight1 = Integer.parseInt(reader.readLine());
            int tailLength1 = Integer.parseInt(reader.readLine());
            // reader.readLine();
            // name = reader.readLine();

            if (name.isEmpty() || name.equals(" ")) break;

                Cat cat1 = new Cat(name, age , weight, tailLength);
                Cat cat2 = new Cat(name1, age1 , weight1, tailLength1);
                CATS.add(cat1);
                CATS.add(cat2);
                printList();

        }

    }

    public static void printList() {
        for (Cat cat : CATS) {
            System.out.println(cat);
        }
    }

    public static class Cat {
        private String name;
        private int age;
        private int weight;
        private int tailLength;

        Cat(String name, int age, int weight, int tailLength) {
            this.name = name;
            this.age = age;
            this.weight = weight;
            this.tailLength = tailLength;
        }

        @Override
        public String toString() {
            return "Cat's name: " + name + ", age: " + age + ", weight: " + weight + ", tail: " + tailLength;
        }
    }
}