Ребят, помогите решить не проходит 4 условие. Уже перепробовал разные способы, потратил куча времени и до сих пор ее не решил. Заранее спасибо за ответы
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 myCat = 0;
int otherCat = 0;
if (this.age > anotherCat.age) {
myCat++;
} else if (this.age < anotherCat.age) {
otherCat++;
} else if (this.weight > anotherCat.weight) {
myCat++;
} else if (this.weight < anotherCat.weight) {
otherCat++;
} else if (this.strength > anotherCat.strength) {
myCat++;
} else if (this.strength < anotherCat.strength) {
otherCat++;
} else if (this.age == anotherCat.age) {
} else if (this.weight == anotherCat.weight) {
} else if (this.strength == anotherCat.strength) {
}
return myCat > otherCat;
//напишите тут ваш код
}
public static void main(String[] args) {
}
}