Skip to content

Instantly share code, notes, and snippets.

@frsyuki
Created July 30, 2010 08:11
Show Gist options
  • Save frsyuki/500131 to your computer and use it in GitHub Desktop.
Save frsyuki/500131 to your computer and use it in GitHub Desktop.
public class Outer {
public static class Inner extends Outer {
public static void main(String[] args) {
new Inner().doit();
}
}
protected void doit() {
System.out.println("done.");
}
}
// $ javac Outer.java
// $ java -cp . 'Outer$Inner'
// done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment