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.*;

public class Main {
    /**
    A set with the given element.
     */
    public static <T> Set<T> a(T root) {
        Set<T> result = new HashSet<T>();
        result.add(root);
        return result;
    }
}