Code: Select all
class Outsider{
public class Insider{ }
}
public class TestClass{
public static void main(String[] args){
Outsider os = new Outsider();
// 1 insert line here
}
}
Code: Select all
Insider in = Outsider.new Insider();
but that's not the reason this option is wrong. If Insider were static, the syntax would beOutsider.new Insider() is wrong as well because Insider is not static;
Code: Select all
Outsider.Insider in = new Outsider.Insider();