By name – with overloading
public Student lookup(String name,
Student Slist[]) {
For (I=0;I<Slist.length;I++)
if (name.equals(Slist[i].name))
return Slist[I];
return null ;
}
Previous slide
Next slide
Back to first slide
View graphic version