// 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) 
import java.util.function.Supplier;

public class LambdaFun2 {
    public static void test(Supplier<String> f) {
        System.out.println(f.get());
    }
    public static void main(String[] args) {
        test(() -> "one");
        test(() -> "two");
        test(() -> "three");
        Supplier<String> four = () -> "four";
        test(four);
    }
}
