im stuck, can someone tell me how am i supposed to write it?
package pl.codegym.task.task05.task0502;
/*
Zaimplementuj metodę walka
*/
public class Kot {
public int wiek;
public int waga;
public int sila;
public Kot() {
}
public boolean walka(Kot innyKot) {
if(Kot.wiek > innyKot.wiek || Kot.sila > innyKot.sila || Kot.waga > innyKot.waga)
{
return true;
}
else
return false;
}
public static void main(String[] args) {
Kot kot1 = new Kot();
Kot kot2 = new Kot();
kot1.wiek = 1;
kot2.wiek = 1;
kot1.waga = 2;
kot2.waga = 3;
kot1.sila = 8;
kot2.sila = 13;
kot1.walka(kot2);
kot2.walka(kot1);
}
}