Skip to content

Instantly share code, notes, and snippets.

@nkchauhan003
Last active July 29, 2022 17:51
package com.cb;
import java.util.Set;
public class Impl {
public static void main(String[] args) {
//Immutable
Set set = Set.of(1, 2, 3, 4, 5); // [1, 2, 3, 4, 5]
System.out.println(set);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment