Files
2021-01-26 18:51:55 +00:00

15 lines
249 B
Java

interface FunctionalInterface<T> {
void apply(T t);
}
interface MethodOwner<T> {
void method(FunctionalInterface<T> fi);
}
class JavaClass {
void usage(MethodOwner<String> mo) {
mo.method(<caret>item -> System.out.println(item));
}
}