List<Integer> nums = Arrays.asList(1, 2, 3); List<String> strings = nums.stream() .map(Object::toString) .collect(Collectors.toList());
That is:
Object::toString
String
List
Collectors.toList()