For testing, I recommend you use System.currentTimeMillis() to get the current time before and after running each test to find out how long it took. (See Assignment 2 for an example of this.)
I would prefer that your program tested the sorts in you main method and printed the results. However, if you'd really rather write a report instead, that will be fine.
To generate random strings, I recommend you create them from an array of
random chars. To create a random char, create a random number (
You may find some use in the StringBuffer class as well.
(Note: My previous recommendation of using Character's forDigit was incorrect. I didn't read the documentation close enough; forDigit does not do what I thought it did. Thanks to Shim for suggesting a good alternate technique.)
This assignment will be out of 10 points. You will get points for the following:
|~ztomasze Index :
TA Details: ICS211:
|Last Edited: 02 Dec 2003|
©2002 by Z. Tomaszewski.