Skip to content

Instantly share code, notes, and snippets.

@hongbeomi
Created November 26, 2019 08:01
Show Gist options
  • Save hongbeomi/4a51ce517e3353d5168b5884864fb166 to your computer and use it in GitHub Desktop.
Save hongbeomi/4a51ce517e3353d5168b5884864fb166 to your computer and use it in GitHub Desktop.
// 람다 표현식을 이용해서 위 예제 코드를 간단하게 재구현하였다!
List<Apple> result = filterApples(inventory, (Apple apple) -> RED.equals(apple.getColor()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment