r/javahelp • u/[deleted] • Jun 08 '16
Need help with question
class A{
static class B{}
static class C{ B b;
C(B b){this.b=b;}
int foo(){return 42;}
}
}
public class Exercise{
public static void main(String [] arg){
assert ([???].foo()==42);
}
}Gotta full in the ???
0
Upvotes
4
u/deltageek Extreme Brewer Jun 08 '16
What have you tried?