Всем привет! Заново начинаю обучаться после долгого застоя. Давно решал задачу и было другое решение. Сейчас пришло в голову данное решение. Правильно ли решено задание или нет? если нет, то где нужно исправить? СПАСИБО! public class Cat { public int age; public int weight; public int strength; public Cat() { } public boolean fight(Cat anotherCat) { //напишите тут ваш код if (this.age > anotherCat.age || this.strength > anotherCat.strength || this.weight > anotherCat.weight) { return true; //по трем критериям } else if (this.age > anotherCat.age || this.strength < anotherCat.strength || this.weight > anotherCat.weight) { //возраст и вес return true; } else if (this.age > anotherCat.age || this.strength > anotherCat.strength || this.weight < anotherCat.weight) { //возраст и сила return true; } else if (this.age < anotherCat.age || this.strength > anotherCat.strength || this.weight > anotherCat.weight) { //сила и вес return true; } else return false; } public static void main (String[]args){ } }