4, 5, 5); Set<Integer> s = integers.stream().collect(Collectors.toSet()); System.out.println(set); // [1, 2, 3, 4, 5] Integer[] a = integers.stream().toArray(Integer[]::new); Arrays.stream(a).forEach(System.out::println); • Collectors class defines many useful collectors – List, Set, Map, groupingBy,paAAoningBy, … etc