java8之CollectorsAPI詳解(帶實例)04

寫給本身避免忘掉:java private static void testSummingDouble() { System.out.println("testSummingDouble"); Optional.of(menu.stream().collect(Collectors.summingDouble(Dish::getCalories))) .if
相關文章
相關標籤/搜索