/** *
 *  BubbleSort.java
 *
 *  Revisions: 1.0 Nov. 04, 2002
 *               Created the BubbleSort class
 *			   1.1 Nov. 07, 2002
 *				 Finished, Compiled, 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. 07, 2002 */ public class BubbleSort extends AbstractSort{ //////////////// //Constructors// //////////////// /** *Constructor for BubbleSort *@param arrayWrap, the array to be sorted */ public BubbleSort(ArrayWrapper arrayWrap){ super(arrayWrap); } /////////// //Methods// /////////// /** *Sort the Array */ public void doSort(){ for(int i=0; i
* @param args a String array of command line arguments. */ public static void main(String[] args) { ArrayWrapper aw = new ArrayWrapper(ArrayWrapper.getRandomIntegerArray(40)); BubbleSort bs = new BubbleSort(aw); for(int i=0;i