This website is preserved for historical and scholarly reference and is no longer actively maintained.
QUIZ 30
November 3, 1997
Given the Java statement:
int [ ] grades = { 11, 4, 9, ... };
write a segment of Java code that will find the index (called smallIndex) of the smallest entry in array grades.
That is, find smallIndex such that grades[smallIndex] is less than or equal to every entry grades[k].
Use grades.length to determine the number of entries actually in the array.