Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.HashSet; import java.util.List; public class Main { public static <T> List<T> removeDuplication(List<T> list) { return new ArrayList<T>(new HashSet<T>(list)); } }