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

What's the difference between comparison done by equals method and == operator?

541


What are constants and how to create constants in java?

552


Why do we need autoboxing in java?

510


Is char * a string?

537


Which containers use a flowlayout as their default layout in java programming?

504






Name and explain the types of ways which are used to pass arguments in any function in java.

564


What is the integer of 16?

532


What is the numeric promotion?

491


What is the use of flag?

577


What does percent mean in java?

586


Difference between abstract and concrete class ?

579


What is an iterator interface in java programming?

528


Why is java called java?

539


describe synchronization in respect to multithreading? : Java thread

497


What is javac used for?

512