pls provide me java hashset live example in java web application.
In which situation we use java hashset in java web application.
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.
pls provide me java hashset live example in java web application.
In which situation we use java hashset in java web application.
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.
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.
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.
hi
thanks