用JDK1.8 Stream中对List进行去重:
List<String> myList = list.stream().distinct().collect(Collectors.toList());