public int indexOf (Student obj) {
   int i;
   int length;
   length = this.size();
   i = 0;
   while (i < length && !obj.equals(get(i)))
     i = i+1;
   if ( i < length)
     return i;
   else
     return -1;// item not found
}