Or we can call forEach() on the collection's stream: list.stream().forEach(consumer);. Both versions will iterate over the list and print ...
確定! 回上一頁