1. list = list.stream().distinct().collect(Collectors.toList());