Не совсем врубаюсь почему не проходит 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 score=0;
int s=0;
if (this.age>anotherCat.age)
score++;
else s++;
if (this.strength>anotherCat.strength)
score++;
else s++;
if (this.weight>anotherCat.weight)
score++;
else s++;
if (score>=s)
return true;
else return false;
}
public static void main(String[] args) {
}
}