interface Inter{
void show();
}
class Outer{
static Inter method(){
return new Inter() {
@Override
public void show() {
System.out.println("hello world!");
}
};
}
}
public class OuterDemo {
public static void main(String[] args) {
Outer.method().show();
}
}