0

Deleting elements from array

How to remove duplicate elements from array in Java? (without using function)

29th Jan 2017, 9:22 AM
pallavraj5
pallavraj5 - avatar
1 Resposta
+ 2
You can loop through a Collection (Like ArrayList) with an Iterator and delete them as you find them with a conditional check, or use CopyOnWriteArrayList and simply loop through and check the elements and bypass needing an Iterator.
29th Jan 2017, 9:25 AM
Blightedsage
Blightedsage - avatar