Как на экран вывести результат работы кода?
В методе figth в конце сравниваю кол-во набранных очков котами. И не понимаю почему результатом работы не является true или false в консоле программы.
public boolean fight(Cat anotherCat) {
int winRateMy = 0;
int winRateAnother = 0;
if (this.age > anotherCat.age){
winRateMy = winRateMy + 1;
}
else if (this.age < anotherCat.age){
winRateAnother = winRateAnother + 1;
}
else if (this.age == anotherCat.age){
winRateAnother = winRateAnother + 1;
winRateMy = winRateMy + 1;
}
if (this.weight > anotherCat.weight){
winRateMy = winRateMy + 1;
}
else if (this.weight < anotherCat.weight){
winRateAnother = winRateAnother + 1;
}
else if (this.weight == anotherCat.weight){
winRateAnother = winRateAnother + 1;
winRateMy = winRateMy + 1;
}
if (this.strength > anotherCat.strength){
winRateMy = winRateMy + 1;
}
else if (this.strength < anotherCat.strength){
winRateAnother = winRateAnother + 1;
}
else if (this.strength == anotherCat.strength){
winRateAnother = winRateAnother + 1;
winRateMy = winRateMy + 1;
}
return System.out.println(winRateMy > winRateAnother);
}
public static void main(String[] args) {
Cat cat1 = new Cat();
cat1.age = 10;
cat1.weight = 10;
cat1.strength = 10;
Cat cat2 = new Cat();
cat2.age = 1;
cat2.weight = 1;
cat2.strength = 1;
System.out.println(cat1.fight(cat2));
}
}