Skip to content

Instantly share code, notes, and snippets.

@dynoChris
Last active January 28, 2019 20:56
Show Gist options
  • Save dynoChris/9cbce04a036e30b99720a992b8a0454a to your computer and use it in GitHub Desktop.
Save dynoChris/9cbce04a036e30b99720a992b8a0454a to your computer and use it in GitHub Desktop.
How to convert Array to Set in Java?
Set<String> defaultGenres = new HashSet<>(Arrays.asList(defaultGenresAsArray)); //convert array to set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment