// CSE 143, Summer 2016 public class BirthdayMystery { public static void main(String[] args) { int yearsOld = 23; yearsOld = happyBirthday(yearsOld); System.out.println("I am " + yearsOld + " today!"); } // Celebrates a person's birthday! Increments yearsOld // and prints a fun birthday message. // // Primitives, like int, are "pass by value." The number gets // copied into yearsOld, and is now a completely separate // variable public static int happyBirthday(int yearsOld) { yearsOld++; System.out.println("Happy " + yearsOld + "th birthday!"); return yearsOld; } }