Created
November 8, 2016 18:27
-
-
Save gAmUssA/c51af11281ebbf0effc46722db610da2 to your computer and use it in GitHub Desktop.
Set puzzler
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
Set<Integer> set = new HashSet<>(Arrays.asList(1,2,3,4,5)) | |
System.out.println(set); | |
/exit |
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
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