не пойму в чем проблема
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 score1=0;
int score2=0;
if(this.age >AnotherCat.age)
{ score1++;}
else if (this.age!=AnotherCat.age)score2++;
if(this.strength >AnotherCat.strength)
{ score1++;}
else if (this.strength!=AnotherCat.strength)score2++;
if(this.weight <AnotherCat.weight)
{ score1++;}
else if (this.weight!=AnotherCat.weight)score2++;
if (score1==score2){return false ;}
else
if (score1>score2){return true ;}
else return false;
}
public static void main(String[] args) {
Cat cat1 = new Cat();
cat1.weight=50;
cat1.strength=20;
cat1.age=11;
Cat cat2 = new Cat();
cat2.age=10;
cat2.strength=18;
cat2.weight=52;
boolean newFight1 = cat1.fight(cat2);
boolean newFight2 = cat2.fight(cat1);
System.out.println(newFight1);
System.out.println(newFight2);
}
}