Name: _________________________
Section: ____
CSE143
Miniquiz #7
Tuesday 11/05/2002
Time limit: 6 minutes
 
Complete the following piece of code. Note that the method
indexOf is a method of the class SimpleArrayList : Refer to the handout.
 

Sequential search for first “equal” object
/** return first location of object o in this list if found, otherwise return –1 */
public int indexOf(Object o) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

}