How to eliminate duplicates from an array?

Answer Posted / vijaya bhaskar teegala

use linkedHashSet.It will maintain the insertion order

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the actions that can occur when a thread enters blocked state?

809


What is static class

819


What is linked hashmap and its features?

774


How many types of memory areas are allocated by jvm?

764


When will we prefer to use set and list in java and why?

712


How do I get the | symbol on my keyboard?

781


Is string is a keyword in java?

739


How big is a boolean?

797


How do you compare two strings lexicographically?

727


Write a program to search a number in the given list of numbers.

827


How do singleton patterns work?

728


What is an example of a keyword?

765


Difference between default and protected access specifiers?

728


What does microservices mean?

703


Explain when classnotfoundexception will be raised ?

792