Пробежался по другим типичным ошибкам, вроде все проверил, но условие все равно не проходит... Вызываю помощь!😟
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) {
int firstCat = 0;
int secondCat = 0;
if(this.age > anotherCat.age){firstCat++;}
else{secondCat++;}
if(this.weight > anotherCat.weight){firstCat++;}
else{secondCat++;}
if(this.strength > anotherCat.strength){firstCat++;}
else{secondCat++;}
if(firstCat > secondCat){return true;}
if(firstCat < secondCat){return false;}
if(secondCat == firstCat){
if(this == anotherCat){return true;}
else{return false;}}
return false;}
public static void main(String[] args) {
}
}