I am doing a code refactor for constant variables declared in two separate A.java and B.java which are to be used in C.java. If condition is true use the constants from A.java or Else use the constants from B.java. So, I thought I could do below
The above code when executed prints "A". My question is without changing the reference variable 'a', can I print the result A, B. If not possible, What is the approach suggested?
Edited by Corey McGlone: Added CODE Tags [ July 14, 2004: Message edited by: Corey McGlone ]