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