摘要:
public class ArrayListTest { public static void main(String[] args) { //创建空的ArrayList列表 ArrayList al = new ArrayList(); //添加元素 al.add("hello");//在列表末尾添加元素 ... 阅读全文
摘要:
public class Test { public static void main(String[] args) { //4.匿名内部类 //主要是针对那些不能直接创建对象的抽象类和接口而来的 Student stu=new Student(); System.out.println(stu.getClass());//... 阅读全文