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

How would you format a date in java? I.e. In the ddmmyyy format?

1315


What is the difference between Java1.4 and Java1.5

2252


Print Vertical traversal of a Binary Tree.

978


Can we access instance variables within static methods ?

1030


What is the buffer limit?

978


How do you create an array in java?

938


Explain covariant method overriding in java.

1044


What interface is extended by awt event listeners?

1004


Write code of any action class?

948


What kind of variables a class can consist of?

1039


What Is Composition?

999


What is the purpose of java?

934


What are disadvantages of java?

955


What will be the initial value of an object reference which is defined as an instance variable?

1075


Difference between method overloading and method overriding in java ?

1019