Created
July 21, 2017 14:44
-
-
Save dario61081/4306317e7b4cb2dda799de4930cf4f84 to your computer and use it in GitHub Desktop.
Remove duplicate items from list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// delete duplicates (if any) from 'myArrayList' | |
arraylist = new ArrayList<String>(new LinkedHashSet<String>(arraylist)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment