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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -