April 27th, 2013, 12:40 PM
HashMap and LinkedList help
pastebin com /Hwg9PVzA
pastebin com /hwrrvMbA
i'm trying to create a hashmap that will have a string as a key and have a linkedlist of Word objects. i'm trying to add to that linkedlist and also access the methods of that object.
April 27th, 2013, 01:29 PM
Accessing the list will be like accessing any object.
Originally Posted by labrattlabz2
You use the .get method on the list, and type of what you retrieve will be an ArrayList. You can then call add or get on it.