public class RefName {
void outRefName() {
System.out.println("the current reference name is" + xxx);
};
};
public static void main(String[] args) {
RefName rf1 = new RefName();
rf1.outRefName(); // should be rf1
RefName rf2 = new RefName();
rf2.outRefName(); // should be rf2
};
As the code above shows,could I make this happen within Java?
thanks.