Java tutorial
import java.util.TreeSet; public class Main { public static void main(String[] args) { TreeSet<Integer> treeadd = new TreeSet<Integer>(); System.out.println(treeadd.isEmpty()); treeadd.add(2); System.out.println(treeadd.isEmpty()); } }