вроде все верно, если два параметра больше будет true...
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 i = this.age>anotherCat.age;
boolean j = this.weight>anotherCat.weight;
boolean l = this.strength>anotherCat.strength;
if ((i&&j)||(i&&l)||(j&&l))
return true;
else
return false;
}
public static void main(String[] args) {
}
}