public boolean fight(Cat anotherCat) { if(this.age==anotherCat.age && this.weight == anotherCat.weight && this.strength == anotherCat.strength) { return false; } if(this.age > anotherCat.age || this.weight > anotherCat.weight || this.strength > anotherCat.strength) { return true; } else { return false; } } public static void main(String[] args) { Cat cat1 = new Cat(); Cat cat2 = new Cat(); cat1.age = 27; cat2.age = 25; cat1.weight =50; cat2.weight= 50; cat1.strength =150; cat2.strength = 150; if(cat1.age == cat2.age && cat1.weight == cat2.weight && cat1.strength == cat2.strength){ System.out.print("Ничья"); return ; } if(cat1.fight(cat2)==false){ System.out.print("Мы проиграли"); return; }