// 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 Demo1 {
	// interface
	public static interface Fun {
		public void doit();
	}
	// class that implements Fun
	public class FunOne implements Fun {
		@Override
		public void doit() {
			System.out.println("Demo 1 here");
		}
	}
	// test Fun instance
	public static void test(Fun f) {
		f.doit();
	}
	public static void main(String[] args) {
		Fun o = new FunOne();
		test(o);
	}
}
