main:
class Outer { private static class Inner { public static void main(String[] args) { System.out.println("Hello from Inner!"); } }}
从命令行编译并正常运行:
C: junk> javac Outer.java
C: junk> java Outer $ Inner
您好!C:垃圾>
欢迎分享,转载请注明来源:内存溢出
main:
class Outer { private static class Inner { public static void main(String[] args) { System.out.println("Hello from Inner!"); } }}
从命令行编译并正常运行:
C: junk> javac Outer.java
C: junk> java Outer $ Inner
您好!C:垃圾>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)