University of Iowa Computer Science Department

Quiz 09

1. When you use Array.Sort(array_name) to sort a collection of objects from some class you need to implement the IComparable interface. Describe the one and only method in that interface.

2. Given an integer array named A filled with 100 unsorted integers, write a method that will return true if the integer 17 appears in the array and false otherwise.

UI CLAS CRA ACM Valid CSS! Valid XHTML 1.0 Transitional Level Double-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0 Cynthia tested
| Modified: .