Results 1 to 2 of 2
  1. #1
    xyz1234 is offline Member
    Join Date
    Oct 2012
    Rep Power

    Default Problem in "; "


    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 ?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: Problem in "; "

    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).

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Obsolete Collection, import java.util.Hashtable
    By newbiejava in forum New To Java
    Replies: 2
    Last Post: 08-05-2010, 05:36 PM
  2. Eclipse "import not resolved" package problem?
    By spamsickle in forum New To Java
    Replies: 3
    Last Post: 08-24-2009, 12:44 PM
  3. Exception in thread "main" java.util.NoSuchElementException
    By vileoxidation in forum New To Java
    Replies: 5
    Last Post: 09-17-2008, 08:29 AM
  4. setting JSTL locale "java.util.MissingResourceException"
    By sabelosimelane in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 09-04-2008, 05:12 PM
  5. Replies: 5
    Last Post: 05-14-2008, 02:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts