arraylist of objects in java
public static void main(String args[]){
ArrayList<Dog> doglist= new ArrayList<Dog>();
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));
}
}