problem 1 for launchcode class in Java