How to eliminate duplicates from an array?
Answer Posted / edward sudhaharchennai
Unlike other implementations of the collection interface,
implementation of the Set intrface do not allow duplicate
elements. This also means that a set can contain at most
one null value. The set interface does not define any new
methods, and its add() and addAll() methods will not store
duplicates. If an element is not currently in the set, two
consecutive calls to the add() method to insert the element
will first return true then false...........
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Why does java doesnt suuport unsigned values?
What is sorting in java?
Tell us something about different types of casting?
String class is defined under which package in java?
Can there be an abstract method without an abstract class?
How do you check if a number is a perfect square?
What are filterstreams?
Write a program to print fibonacci series
Why are generics used?
What is the difference between length and length() method in java?
How many types of threads are there in java?
What sorting algorithm does javascript use?
how to create daemon thread in java?
What is the use of default method in interface in java? Explain
What defines function?