|
HashMap visual example
Hi I'm obligated to use the hashmap class to implement a backgammon game and I have the following given code:
public Map<PointType,List<Color>> getPoints();
It's given in Map but we're supposed to use a HashMap:P
Can anyone explain or describe how a Map or a Hashmap is virtually.
e.g.
a hashtable can be described as non-sequent places in memory that contain certain data allocated with the help of a hash function.I simply can't get it as a picture in my head at least after reading the API.
|