Код не проходит валидацию по п. 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 win = 0;
int lose = 0;
if (this.age>=anotherCat.age) win++;
else lose++;
if (this.weight>=anotherCat.weight) win++;
else lose++;
if (this.strength>=anotherCat.strength) win++;
else lose++;
return win>=lose;
}
public static void main(String[] args) {
}
}