hw9 - so as to test this new method Invoke the testRun...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
HW #9 1. A modification of HW#8 , write a void method doReverse(int[] a) that will alter the the original array a so that it is reversed. public void doReverse(int[] a) This method should be written in a general way without any knowledge of the incoming parameter. Modify the testRun()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: so as to test this new method. Invoke the testRun() method for testing. After invoking, use the inspector to open up the object, and inspect the contents of the instance variable x . Are its contents of x now in the reverse order of that of the original x ?...
View Full Document

This note was uploaded on 04/08/2008 for the course CSCI 112 taught by Professor Yuen during the Fall '07 term at Lake Forest.

Ask a homework question - tutors are online