не выполняет 2 условия. int a = 0, b = 0; if (this.age > anotherCat.age) a++; else if (this.age < anotherCat.age) b++; if (this.weight > anotherCat.weight) a++; else if (this.age < anotherCat.age) b++; if (this.strength > anotherCat.strength) a++; else if (this.age < anotherCat.age) b++; if (a > b) return true; else return false;