This website is preserved for historical and scholarly reference and is no longer actively maintained.

QUIZ 30

November 3, 1997

Given the Java statement:

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.



Return to Eleanor Hare's Home Page.

Return to Department of Computer Science Home page.