interface A{
public void infoprint();
}
class B{
public void fun1(){
this.fun2(new A(){
public void infoprint(){
System.out.println("hello world!");
}
});
}
public void fun2(A a){
a.infoprint();
}
}
public class Pet{
public static void main(String args[]){
new B().fun1();
}
}
public void infoprint();
}
class B{
public void fun1(){
this.fun2(new A(){
public void infoprint(){
System.out.println("hello world!");
}
});
}
public void fun2(A a){
a.infoprint();
}
}
public class Pet{
public static void main(String args[]){
new B().fun1();
}
}