//----- public ArrayList getKidData(int key) { ArrayList ara = new ArrayList(); for (int i = 0; i < kids.Count; i++) { Kid kd = (Kid)kids[i]; ara.Add(kd.getData(key)); } return(ara); }
//----- public bool compare(Kid kd, int key) { return(compareTo(getData(key), kd.getData(key))); }