This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java in General and the fly likes Accessing the HashMap object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Accessing the HashMap object " Watch "Accessing the HashMap object " New topic

Accessing the HashMap object

Rashmee Kulkarni

Joined: Mar 27, 2010
Posts: 21
I want to access HashMap object of Class E through class I at runtime.

method of Class I gets called through Class E methods.

I want to change the value of HashMap which is private to class E at rumtime.

I have tried to use reflection,to get the Field(it returns object of Field class,it does not return HashMap object ).But I can not make changes in values in HashMap.

Please guide.

wood burning stoves
subject: Accessing the HashMap object
jQuery in Action, 3rd edition