Skip to content

Instantly share code, notes, and snippets.

@yydai
Created August 22, 2019 03:53
Show Gist options
  • Save yydai/bdba2e260a68bae622a6f7afef4fb2ba to your computer and use it in GitHub Desktop.
Save yydai/bdba2e260a68bae622a6f7afef4fb2ba to your computer and use it in GitHub Desktop.
java snippets
// drop the duplicate values
Set<String> set = new HashSet<>(fullMatch);
fullMatch.clear();
fullMatch.addAll(set);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment