/** *
* MergeSort.java * * Revisions: 1.0 Nov. 04, 2002 * Created the MergeSort class * 1.1 Nov. 05, 2002 * Compiled, Finished, Commented * ** * Collaboration Statement: * I worked on the homework assignment alone, using only * course materials. * * Created with JCreatorLE, some indents are off when viewed through notepad * or EMACS * * @author Jose Manuel Caban * @version Version 1.1, Nov. 04, 2002 */ public class MergeSort extends AbstractSort{ //////////////// //Constructors// //////////////// /** *Constructor for MergeSort *@param arrayWrap, the array to be sorted */ public MergeSort(ArrayWrapper arrayWrap){ super(arrayWrap); } /////////// //Methods// /////////// /** *Sort the Array */ public void doSort(){ Comparable[] tmpArray = new Comparable[arrayWrap.length()]; for(int i=0; i