// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class LambdaFun {
    @FunctionalInterface
    public static interface F {
        public String get();
    }
    public static void test(F f) {
        System.out.println(f.get());
    }
    public static void main(String[] args) {
        test(() -> "one");
        test(() -> "two");
        test(() -> "three");
        F four = () -> "four";
        test(four);
    }
}
