Wednesday, August 10, 2011

Removing duplicate strings from array list?

ArrayList has a remove(int index) method, use it. Or are you supposed to copy the elements from myArr to myArr2? In that case you just use ArrayList's add( ) only when the element is not a duplicate.

No comments:

Post a Comment