I am working on a simple video game program for school and I have created a method where the player gets 15 health points if that method is called. I have to keep the health at
Maybe this?
public void getHealed() { if (health <= 85) { health += 15; } else { health = 100; } }