// 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 Demo3 {
	// interface
	@FunctionalInterface
	public static interface Fun {
		public void doit();
	}
	// test Fun instance
	public static void test(Fun f) {
		f.doit();
	}
	public static void main(String[] args) {
		test(() -> System.out.println("Demo 3 here")); // lambda that implements Fun (requires Java 8+)
	}
}
