Eclipse Warning with Java HashMap -
Eclipse is saying "Hashmap is a raw type" when I use the following code
hashmap = new hashmap (); Any thoughts can be wrong?
will accept
edit: actually, when you go to Java here I will also give an example:
Say that I want to map somebody's name to their person object:
map & lt ; String, person & gt; Map = new hashmap & lt; String, person & gt; (); // map.get method now comes back to a person // map.put method now requires a string and a person is checked in these compiled time;
Comments
Post a Comment