[Java] Stream 예제
2022. 3. 23. 20:47
프로그래밍/JAVA
Stream을 활용한 예제 src/main/java/lambdasinaction/stream/ex1/Dish.java package lambdasinaction.stream.ex1; import java.util.*; public class Dish { private final String name; private final boolean vegetarian; private final int calories; private final Type type; public Dish(String name, boolean vegetarian, int calories, Type type) { this.name = name; this.vegetarian = vegetarian; this.calories = calori..