Java tutorial
//package com.java2s; import java.util.Set; import java.util.TreeSet; public class Main { @SafeVarargs public static <E> Set<E> $s(E... ee) { Set<E> set = new TreeSet<>(); for (E e : ee) { set.add(e); } return set; } }