Помогите, пожалуйста,
вообще не понимаю, что тут не так
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 myCatCount = 0;
int anotherCatCount = 0;
if(this.age > anotherCat.age){
myCatCount = myCatCount + 1;
}else if(this.age < anotherCat.age){
anotherCatCount = anotherCatCount + 1;
}else {
return false;
}
if(this.weight > anotherCat.weight){
myCatCount = myCatCount + 1;
}else if(this.weight < anotherCat.weight){
anotherCatCount = anotherCatCount + 1;
}else {
return false;
}
if(this.strength > anotherCat.strength){
myCatCount = myCatCount + 1;
}else if(this.strength < anotherCat.strength){
anotherCatCount = anotherCatCount + 1;
}else {
return false;
}
if (myCatCount > anotherCatCount){
return true;
}else if (myCatCount < anotherCatCount){
return false;
}else {
return false;
}
}
public static void main(String[] args) {
}
}