/* * AbstractSort.java * * Created on April 12, 2005, 10:17 PM */ package sorttimer; /** * * @author levenick */ public abstract class AbstractSort { protected IntList theList; public abstract void sort(IntList theList); public abstract String toString() ; protected void swap(int here, int there) { int pocket = theList.elementAt(there); theList.replaceElementAt(theList.elementAt(here), there); theList.replaceElementAt(pocket, here); } }