Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: java hashset

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb java hashset

    pls provide me java hashset live example in java web application.
    In which situation we use java hashset in java web application.


  2. #2
    Member
    Join Date
    Jul 2013
    Posts
    219
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default Re: java hashset

    Hello.
    I think you are the same person who earlier asked similar question regarding HashMap. Now you are asking the same question on HashSet.
    Looks like these are your assignments and you are not putting sincere effort.

    Syed.

  3. #3
    Junior Member
    Join Date
    Aug 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java hashset

    Hello
    This is not my assignments like you are thiking.
    I am preparing for interview and so i want to know each and every things about collection classes.

  4. #4
    Member
    Join Date
    Jul 2013
    Posts
    219
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default Re: java hashset

    Hi.
    Ok. Fine.
    Suppose I am providing online service for finding synonyms for a given word. Its a java servlet-based web application. The user enters the word in the browser and expects the list of synonyms.
    As the web request arrives, the servlet internally communicates with three real online dictionaries one by one by forwarding the user-given word. All the responses (list of synonyms for the given word) from these three online dictionaries will be stored in a HashSet object to eliminate the duplicates.
    The servlet will finally send the values stored in HashSet to the browser as response.

    Syed.

  5. #5
    Junior Member
    Join Date
    Aug 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java hashset

    hi

    thanks

Similar Threads

  1. HashSet cannot be cast to java.util.ArrayList
    By vector_ever in forum What's Wrong With My Code?
    Replies: 4
    Last Post: August 7th, 2013, 03:11 PM
  2. HashSet store duplicated Value
    By vector_ever in forum What's Wrong With My Code?
    Replies: 20
    Last Post: August 5th, 2013, 01:46 PM
  3. Problem with equality check with HashSet
    By jmegha in forum Member Introductions
    Replies: 2
    Last Post: June 15th, 2011, 07:28 AM
  4. error in HashSet
    By harsh23 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 4th, 2011, 09:18 AM
  5. Removing objects from a hashSet
    By JohnTor in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 4th, 2010, 03:03 PM

Tags for this Thread