Что я не вижу? Подскажите...
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) {
boolean a;
int f1 = 0;
int f2 = 0;
if (this.weight > anotherCat.weight) f1++;
else f2++;
if (this.age > anotherCat.age) f1++;
else f2++;
if (this.strength > anotherCat.strength) f1++;
else f2++;
a = f1 > f2;
return a;
//напишите тут ваш код
}
public static void main(String[] args) {
}
}