因简书改版后无法添加扩展链接,20170306问题解析请到公众号查看,问题解析在公众号首发,公众号ID:weknow619。
package Mar2017;
public class Ques0307 {
private String s1 = "Ques0307 string";
class InnerClass {
private String s2 = "inner string";
public void innerMethod() {
System.out.println(s1);
System.out.println(s2);
}
}
public static void outerMethod() {
Ques0307.InnerClass inner = new Ques0307().new InnerClass();
inner.innerMethod();
}
public static void main(String[] args) {
outerMethod();
}
}
今日问题:
请问主程序能否正常运行输出结果?