[Java] Java의 인터페이스
1. @FunctionalInterface사용자 정의 인터페이스@FunctionalInterfaceinterface Plus { void plus(int a, int b, int c);}Plus pl = (a, b, c) -> System.out.println("1. FuctionalInterface: " + (a + b + c)); pl.plus(1, 2, 3); 인터페이스를 사용해서 람다 객체를 생성할 때 인터페이스를 직접 정의하지 않고도,자바에서 제공하는 인터페이스를 사용해서 람다 객체를 생성할 수 있다. 2. Consumer : 리턴값이 없는 accept() 메서드Consumer consumer = (t) -> System.out.println(t);consumer.accept("2. Hello..