Java tutorial
//package com.java2s; import java.util.HashSet; import java.util.List; import java.util.Set; public class Main { /** * Interim method to get this code to compile against the 1.0-RC1 engine * @param key * @param list * @return */ public static Set getSetFromList(List list) { return new HashSet(list); } }