- 博客(1)
- 收藏
- 关注
原创 java关于内部类的巧妙使用(一道经典面试题)
题目: interface Inter{ void show(); } class Outer{ //补齐代码,使得主函数输出hello world } public class Mianshi { public static void main(String[] args) { Outer.method().show(); } } 注:接口以及有主函数的类不能改变。 方法一(不通过内...
2020-03-03 11:41:09
252
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人