Skip to content

Instantly share code, notes, and snippets.

@acyuta
Created June 22, 2019 06:20
Show Gist options
  • Save acyuta/f1a576cb0e7fb820e2c4b753fe513c6f to your computer and use it in GitHub Desktop.
Save acyuta/f1a576cb0e7fb820e2c4b753fe513c6f to your computer and use it in GitHub Desktop.
public class Public {
public static void main(String[] args) {
Anon ext = new Anon() {
@Override
public void doit() {
System.out.println("Anon");
}
};
ext.doit();
}
}
interface Anon {
void doit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment