Подскажите пожалуйста,не понимаю что не так
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) {
Cat cat = new Cat();
cat.age = 4;
cat.weight = 4;
cat.strength = 19;
Cat cat2 = new Cat();
anotherCat.age = 2;
anotherCat.weight = 3;
anotherCat.strength = 18;
int anotherCatCount = 0;
int catCount = 0;
if (this.age > anotherCat.age) {
catCount++;
} else if (this.age > anotherCat.age) {
anotherCatCount++;
} else {
catCount++;
anotherCatCount++;
}
if (this.weight > anotherCat.weight) {
catCount++;
} else if (this.weight < anotherCat.weight) {
anotherCatCount++;
} else {
catCount++;
anotherCatCount++;
if (this.strength > anotherCat.strength) {
catCount++;
} else if (this.strength < anotherCat.strength) {
anotherCatCount++;
} else {
catCount++;
anotherCatCount++;
}
if (catCount > anotherCatCount) {
return true;
} else if (catCount < anotherCatCount) {
return false;
} else if (catCount == anotherCatCount) {
return false;
}
}
}
}