Functional Interface in Java Example