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

Which of the classes will have more memory allocated?

528


What are the special characters?

521


Are true and false keywords?

554


What is string in java is it a data type?

522


How do you avoid global variables?

531






What is local class in java?

505


How do you reverse a string in java?

570


Why java is considered as platform independent?

577


What is navigable map in java?

508


5 Coding best practices you learned in java?

620


what are Hostile Applets?

1591


What does it mean that a method or field is “static”?

541


How do you start a new line in java?

505


How can u increase the heap size in the memory?

538


What is concurrent hashmap and its features?

505