| import cn.hutool.core.collection.CollUtil;  | 
| import cn.hutool.core.util.ArrayUtil;  | 
|   | 
| import java.util.ArrayList;  | 
| import java.util.List;  | 
| import java.util.stream.Collectors;  | 
|   | 
| public class TableTest {  | 
|   | 
|     public static void main(String[] args) {  | 
|   | 
|   | 
|         List<String> list=new ArrayList<>();  | 
|         list.add("1");  | 
|         list.add("1");  | 
|         list.add("2");  | 
|   | 
|         list=list.stream().distinct().collect(Collectors.toList());  | 
|         for (String s : list) {  | 
|             System.out.println(s);  | 
|         }  | 
|     }  | 
|   | 
|   | 
| }  |