I have a question in Java reflection usage. Could anyone help me out how we can access the variables map1, map2 using reflection from the following code
I tried the reflection technique by doing the following
When I tried the above code and debugged the code in eclipse I could see that the Field contain the necessary data but I couldn't retrieve the value from the Field object as my instance refers to Manager for the the get method I believe. Can anyone tell me what exactly has to be done to get the value for map1 and map2.