This preview shows page 1. Sign up to view the full content.
Unformatted text preview: inspector to open up the object, and keep clicking until you see the contents of the instance variable numberArrayReversed . Are its contents indeed in the reverse order of that of numberArray ? 6. Exercise B. Program a for-loop version min2(ArrayList<Integer> a) method that will return an int that is the minimum of the integers in the array. Modify the testRun() so as to test this new method. Invoke the testRun() method for testing. 7. Exercise C. Program a for-loop version average(ArrayList<Integer> a) method that will return a double that is the average of the integers in the array. Be careful with dividing two integers if you do not wish the result to be rounded down. Modify the testRun() so as to test this new method. Invoke the testRun() method for testing....
View Full Document
This lab report was uploaded on 04/08/2008 for the course CSCI 112 taught by Professor Yuen during the Fall '07 term at Lake Forest.
- Fall '07