Java mendefinisikan antarmuka fungsional di java
import java.lang.FunctionalInterface;
@FunctionalInterface
public interface MyInterface{
// the single abstract method
double getValue();
}
SAMER SAEID