Вот старался вроде. Даже через счетчик решил замутить. Куда уж более чем по отдельному то?)
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 countGood = 0;
int countEnemy = 0;
if (age > anotherCat.age) {
countGood++;
} else {
countEnemy++;
}
if (weight > anotherCat.weight) {
countGood++;
}
else
{
countEnemy++;
}
if (strength>anotherCat.strength)
{
countGood++;
}
else {countEnemy++;}
return (countGood>countEnemy);
}
public static void main(String[] args) {
}
}