Ребята помогите плиз
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 k =0;
int l =0;
if (this.age>anotherCat.age){
k++;}
else (this.age==anotherCat.age){l++;}
if (this.weight>anotherCat.weight) {
k++;
}else if (this.weight==anotherCat.weight) {l++;}
if (this.strength>anotherCat.strength){k++;
}else if(this.strength==anotherCat.strength)
{l++;}
if (k>l)
return true;
else
return false;
}
public static void main(String[] args) {
}
}