// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package m2m;

public class J {
    public static void demo(int n, String s, Action o) {
        for(int i = 0; i < n; i++) {
            System.out.println("Java says: " + s);
        }
        o.m();
    }
    public static void simpledemo(int n, String s) {
        for(int i = 0; i < n; i++) {
            System.out.println("Java says: " + s);
        }
    }
}
