Skip to content

Instantly share code, notes, and snippets.

@Eugeny
Created March 14, 2012 14:35
Show Gist options
  • Save Eugeny/2036904 to your computer and use it in GitHub Desktop.
Save Eugeny/2036904 to your computer and use it in GitHub Desktop.
package by.fksis.schedule.parser;
public class Test {
private interface ISmth {
public void print();
}
public static void main(String[] args) {
final string str = "Hello";
ISmth smth = new ISmth() {
@Override
public void print() {
System.out.println(str);
}
};
smth.print();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment