Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HashMap object

807605Jul 2 2007 — edited Jul 2 2007
hi everyone. i have a problem i can't understand
LinkedList bTRX = new LinkedList();
bTRX.add("test");
bTRX.add("test1");
map.put(TRX, bTRX);

//now i would like to add new element to bTRX through my map, what //i'm doing wrong??
(LinkedList)(map.get(TRX)).add("test2");
thaks for any solution, best regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2007
Added on Jul 2 2007
3 comments
105 views