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