class Do{
void doit(){
ClassA a = new ClassA();
a.doSomething(>>>CODE HERE<<<);
}
}
interface InterfaceA{
void doSomethingElse();
}
class ClassA{
void doSomething(InterfaceA f){
}
}
Question: Complete the above code so that doit method prints "Hello world!" by adding the code only between parentheses as denoted and not changing anything else.
Could somebody please help me to solve this? I still have no clue. I left it blank in the quiz yesterday :((. Thanks for your help
doSomethingmethod ofClassA? I would think there would be something likef.doSomethingElse();in that method's body.