Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.*;

import java.util.stream.*;
import static java.util.Collections.*;

public class Main {
    @SafeVarargs
    public static <T> Set<T> setOf(T... values) {
        return unmodifiableSet(Stream.of(values).collect(Collectors.toSet()));
    }
}