помогите
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 win = 0;
int lose = 0;
if (this.age>anotherCat.age) win++;
else lose++;
if (this.weight>anotherCat.weight) win++;
else lose++;
if (this.strength>anotherCat.strength) win++;
else lose++;
return win>lose;
}
public static void main(String[] args) {
Cat cat = new Cat();
Cat cat1 = new Cat();
cat.age = 4;
cat.weight = 10;
cat.strength = 100;
cat1.age = 1;
cat1.weight = 9;
cat1.strength = 99;
System.out.println(cat.fight(cat1));
System.out.println(cat1.fight(cat));
}
}