Java静态内部类 Java将数组转换为String Java本地内部类 Java静态内部类 public class SampleClass { static abstract class Test{ int num = 300; public abstract void display(); } class DemoClass extends Test{ public void display() { System.out.println("Hi how are you"); } } public static void main(String args[]){ SampleClass obj = new SampleClass(); obj.new DemoClass().display(); } } Java将数组转换为String Java本地内部类