// 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 Main2 {
    // note not static
    public class Foobar {
        @Override
        public String toString() {
            return super.toString() + "/" + Main2.this.toString();
        }
    }
    public void test() {
        // full syntax
        Main2.Foobar a = this.new Foobar();
        System.out.println(a);
        // abbreviated syntax
        Foobar b = new Foobar();
        System.out.println(b);
    }
    public static void main(String[] args) {
        Main2 o = new Main2();
        o.test();
    }
}
