Skip to content

Instantly share code, notes, and snippets.

@gAmUssA
Created November 8, 2016 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gAmUssA/c51af11281ebbf0effc46722db610da2 to your computer and use it in GitHub Desktop.
Save gAmUssA/c51af11281ebbf0effc46722db610da2 to your computer and use it in GitHub Desktop.
Set puzzler
Set<Integer> set = new HashSet<>(Arrays.asList(1,2,3,4,5))
System.out.println(set);
/exit
Set set = Set.of(1,2,3,4,5);
System.out.println(set);
/exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment