Please tell me if I'm correct in thinking there's something wrong with this example. I found in the "Complete
Java 2 Certification Guide"
Button btn;
btn = new Button("Pink");
changer(btn);
System.out.println(btn.getLabel());
public void changer(Button
replaceMe) {
changeMe.setLabel("Blue");
}
Shouldn't
changeMe and
replaceMe be the same name?
Thanks
[This message has been edited by Ray Marsh (edited April 28, 2001).]