public Person[] find(String searchName) {
Person[] p = new Person[a.length];
int j = 0, k = 0;
if (searchName != null)
for (j = 0; j < nElems; ++j)
if (a[j] != null && searchName.equals(a[j].getLast())) p[k++] = a[j];
return p[0] == null ? null : p;
}