Вообще не понимаю почему не проходит проверку.
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 score1=this.weight+this.age+this.strength;
int score2=anotherCat.weight+anotherCat.age+anotherCat.strength;
return score1>score2;
}
public static void main(String[] args) {
}
}