Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}