For example, in the following code you pass a method reference Dish::getName to the map method to extract the names of the dishes in the stream: List<String> ...
確定! 回上一頁