void () { Object list1 = Stream.of(1, 2, 3, 4).map(String::valueOf).collect(Collectors.toList()); Iterable<String> list2 = Stream.of(1, 2, 3, 4).map(String::valueOf).collect(Collectors.toList()); Collection<String> list3 = Stream.of(1, 2, 3, 4).map(String::valueOf).collect(Collectors.toList()); List<String> list4 = Stream.of(1, 2, 3, 4).map(String::valueOf).collect(Collectors.toList()); Collection<Object> list5 = Stream.of(1, 2, 3, 4).map(String::valueOf).collect(Collectors.toList()); Collection<?> list6 = Stream.of(1, 2, 3, 4).map(String::valueOf).collect(Collectors.toList()); }