📜  java中对象的arraylist - TypeScript代码示例

📅  最后修改于: 2022-03-11 14:48:18.109000             🧑  作者: Mango

代码示例1
public static void main(String args[]){
       ArrayList doglist= new ArrayList();
      doglist.add(new Dog(“Joe”,”Husky”,3, white));
      doglist.add(new Student(“Flash”,”German Shepherd",1, brown));
      doglist.add(new Student(“Jason”,”Pitbull”,5,brown));
}
}