import java.awt.Button; public class MainClass { public static void main() { Button btn = new Button("Pink"); changeMe(btn); System.out.println(btn.getLabel()); } public static void changeMe(Button replaceMe) { replaceMe = new Button("Blue"); System.out.println(replaceMe.getLabel()); } }