Skip to content

Instantly share code, notes, and snippets.

@rnaufal

rnaufal/UniqueNumbers.java

Last active Feb 23, 2020
Embed
What would you like to do?
final Set<Integer> uniqueNumbers = List.of(1, 2, 2, 3, 4, 5, 5).stream().collect(Collectors.toSet());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment