Problem in "import.java.util.Hashtable; "
I'm writing a java program and when I try to write the line "import java.util.Hashtable;" , I get a message in yellow color in Net Beans saying that
Obsolete collection, Surround with ...
Please tell me why can't I import :"import java.util.Hashtable;" in Net Beans ?
Re: Problem in "import.java.util.Hashtable; "
You can use a HashTable but it's a bit of an old class and there's an alternative: the HashMap class. (Net Beans only issues a warning, not an error).