не могу понять где ошибка. Подскажите пожалуйста
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 catscore = 0;
int cat2score = 0;
if (this.age>anotherCat.age)
{catscore++;
cat2score--;}
else
{catscore--;
cat2score++;}
if (this.weight>anotherCat.weight)
{catscore++;
cat2score--;}
else
{cat2score++;
catscore--;}
if (this.strength>anotherCat.strength)
{catscore++;
cat2score--;}
else
{catscore--;
cat2score++;}
if (catscore>cat2score)
return true;
else
return false;
}
public static void main(String[] args) {
}
}