Я уже вроде и подсмотрел у других, но не могу понять что хочет валидатор
package com.javarush.task.pro.task07.task0720;
public class Nimrod {
public static int laser = 100_000;
public static int rocket = 10_000;
public static int angelicaKiss;
public int health = 1_000_000;
public void defend(int z)
{
health = health - applyShield(z);
}
public int attack()
{
return rocket;
}
public byte applyShield(int z)
{
return (byte) z ;
}
}