UNB/ CS/ David Bremner/ teaching/ java/ CyberPetList.java
public class CyberPetList{
    private CyberPet[] data;
    private int petCount=0;

    CyberPetList(int num){
        data = new CyberPet[num];
    }

    public void add(CyberPet newPet){
        data[petCount]=newPet;
        petCount++;
    }

    public void add(String name){
        CyberPet newPet;
        newPet=new CyberPet(name);
        this.add(newPet);
    }

}