public void attack()
    {
        if(monsterLP <= 0 || lifepoints <= 0)
        {
            System.out.print("The winner has been chosen");
        }
        else
        {
            if(damage>monsterD)
            {
                int gap= monsterD-damage;
                monsterLP = monsterLP+gap;
            }
            if(monsterD>damage)
            {
                int gap= damage-monsterD;
                lifepoints = lifepoints+gap;
            }

            System.out.println("Your Hero:");
            System.out.println("Lifepoints: "+lifepoints);
            System.out.println("Damage: "+damage);
            System.out.println("The Monster:");
            System.out.println("Lifepoints: "+monsterLP);
            System.out.print("Damage: "+monsterD);
        }
    }