View Single Post
  #2 (permalink)  
Old 12-12-2007, 09:45 PM
staykovmarin staykovmarin is offline
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
Well imagine an array with methods, without fixed size however, it expands as you add elements to it.

With a HashMap you can add as many items as you want, and each item has its own key. So you add them in pairs, using the put() method. Then when you invoke the get method, you add a key as an argument, and it will return whatever value is associated with that key.

This post really doesnt belong here, in my humble opinion.

Last edited by staykovmarin : 12-12-2007 at 09:47 PM.
Reply With Quote