This is the HappyBirthday.javasource file for you to modify in the Lab session:
public class HappyBirthday
{
public static void happyBirthday(String person)
{
System.out.println ("Happy Birthday to you!");
System.out.println ("Happy Birthday to you!");
System.out.println ("Happy Birthday, dear " + person + ".");
System.out.println ("Happy Birthday to you!");
}
public static void main(String[] args)
{
happyBirthday("Emily");
happyBirthday("Andre");
}
}
public class HappyBirthday { public static void happyBirthday(String person) { System.out.println("Happy Birthday to you!"); System.out.println("Happy Birthday to you!"); System.out.println("Happy Birthday, dear " + person + "."); System.out.println("Happy Birthday to you!"); System.out.println(); } public static void main(String[] args) { happyBirthday("Emily"); happyBirthday("Andre"); happyBirthday("Maria"); } }
Get Answers For Free
Most questions answered within 1 hours.