В 14 строке компилятор увидел ошибку, и сказал что я не объявил класс, интерфейс или enum...
Как решить эту проблему?
package com.javarush.task.task05.task0502;
/*
Реализовать метод fight
*/
public class Cat {
public int age;
public int weight;
public int strength;
public Cat() {
Cat cat1 = new cat();
cat1.age = ();
cat1.weight = ();
cat1.streenght = ();
Cat cat2 = new cat();
cat2.age = ();
cat2.weight = ();
cat2.streenght = ();
}
public boolean fight(Cat anotherCat) {
//напишите тут ваш код
if ()
int batlle = (age < weight , weght < streenght , streenght < age);
this.System.out.println(batlle);
else
this.System.out.println(batlle);
}
public static void main(String[] args) {
}
}