Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is reverse function?

1123


What is the exact difference in between unicast and multicast object? Where we will use?

994


Describe what a thread-local variable is in java?

1008


How do you check if two given string are anagrams?

961


Which class contains a method: cloneable or object?

1033


What is the primary benefit of encapsulation?

1082


What is a numeric format?

1079


Why should I use abstract class?

1093


What is a method type?

999


Is it safe to install java on my computer?

1131


How do you do absolute value in java?

973


What is the right data type to represent a price in java?

948


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

1106


What is methods in java?

1000


Explain public static void main(string args[]) in java.

988