How can you eliminate duplicates?
Answers were Sorted based on User's Feedback
Answer / deepak kumar sungh
Any Set. set always contains unique elements. However, you
must take care in case of objects where you need to define
the hashCode and equals method
| Is This Answer Correct ? | 2 Yes | 0 No |
What is the replace tool?
How does indexof work?
What is string in java with example?
What is role of void keyword in declaring functions?
What are the new features in java 8? Explain
What is the primitive type short?
Why vector class is used?
What are teh sub-classes of a component class?
What is an inner class in java?
Which is better list or arraylist in java?
How does the garbage collector works in java?
what is the difference between object and class