Introduction
Here is the source code for Main.java
Source
//package com.java2s;
import java.util.*;
public class Main {
/**
* @param <T>
* @param list
* @return list
*/
public static <T> Set<T> list2Set(List<T> list) {
Set<T> set = new HashSet<T>();
set.addAll(list);
return set;
}
}