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