r/javahelp • • 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

7 comments sorted by

View all comments

4

u/desrtfx Out of Coffee error - System halted Jun 08 '16

/r/javahelp does not work like this.

Please, read and follow the Posting guidelines

We will not do your homework.