не могу определить ошибку
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 winAnother=0;
if (anotherCat.strength>this.strength)
{winAnother++;}
else if (anotherCat.strength==this.strength){}
else {winAnother--;};
if (anotherCat.age>this.age)
{winAnother++;}
else if (anotherCat.age==this.age){}
else {winAnother--;} ;
if (anotherCat.weight>this.weight)
{winAnother++;}
else if (anotherCat.weight==this.weight){}
else {winAnother--;};
if (winAnother > 0)
{return true;}
else {return false;}
//напишите тут ваш код
}
public static void main(String[] args) {
Cat first = new Cat();
first.age = 3;
first.weight= 10;
first.strength= 3;
Cat second = new Cat();
second.age = 10;
second.weight= 3;
second.strength= 3;
System.out.println(first.fight(second));
System.out.println(second.fight(first));
}
}