Подскажите, пожалуйста, что подправить. Не понимаю, что не так.
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 countCat1 = 0;
int countCat2 = 0;
if (this.age>anotherCat.age && this.age!=anotherCat.age)
countCat1++;
else countCat2++;
if (this.weight>anotherCat.weight && this.weight!=anotherCat.weight)
countCat1++;
else countCat2++;
if (this.strength>anotherCat.strength && this.strength!=anotherCat.strength)
countCat1++;
else countCat2++;
if (countCat1>countCat2 || countCat1==countCat2)
return true;
else return false;
}
public static void main(String[] args) {
Cat cat1 = new Cat();
cat1.age = 6;
cat1.weight = 4;
cat1.strength = 8;
Cat cat2 = new Cat();
cat2.age = 5;
cat2.weight = 6;
cat2.strength = 7;
}
}