Помогите пожалуйста понять, критерии каких объектов надо брать, просто немного не понимаю. Код проходит все проверки, кроме одной. Знаю, что возможно написан бред. Объясните пожалуйста.
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 firstCat = 0;
int secondCat = 0;
{
if (this.age > anotherCat.age) firstCat++;
else secondCat++;
}
{
if (this.weight > anotherCat.weight)firstCat++;
else secondCat++;
}
{
if (this.strength > anotherCat.strength)firstCat++;
else secondCat++;
}
if (firstCat > secondCat) return true;
else return false;
}
public static void main(String[] args) {
}
}