В чём проблема?
package com.javarush.task.task05.task0504;
/*
Трикотаж
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
}
public static class Cat {
private String name;
private int age;
private int weight;
private int strength;
public Cat(String name, int age, int weight, int strength) {
this.name = name;
this.age = age;
this.weight = weight;
this.strength = strength;
Cat cat1 = new Cat();
cat1.name = "Мясополк";
cat1.age = 1;
cat1.weight = 2;
cat1.strength = 3;
Cat cat2 = new Cat();
cat2.name = "Гладислав";
cat2.age = 2;
cat2.weight = 3;
cat2.strength = 4;
Cat cat3 = new Cat();
cat3.name = "Ярокус";
cat3.age = 5;
cat3.weight = 6;
cat3.strength = 7;
}
}
}