Как-то как-то разобрался, но выходит ошибка "отсутствует объявления класса enum строка 50" и указывает на void. Помогите решить проблему
package com.javarush.task.task05.task0502;
/*
Реализовать метод fight
*/
public class Cat {
public int age;
public int weight;
public int strength;
public Cat() {
}
public boolean fight(Cat anotherCat) {
int point1 = 0;
int point2 = 0;
if(this.age >= anotherCat.age)
{
point1++;
}
else
{
point2++;
}
if (this.weight >= anotherCat.weight) {
point1++;
}
else
{
point2++;
}
if (this.strength >= anotherCat.strength)
{
point1++;
}
else
{
point2++;
} if (point1 > point2)
return true;
else if(point1 < point2)
return false;
else if (point1 == point2)
return false;
}
}
public static void main(String[] args) {
}
}