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;

How Java generates this type of information is lost on run-time.

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -