/** * Return a new sorted collection from this unsorted collection. * Sort using quick sort. */ public void sort(Object[] unSortedObjects, String[] unsortedStrings) { int size = unSortedObjects.length; this.sortedObjects = new Object[size]; this.sortedStrings = new String[size]; //copy the array so can return a new sorted collection System.arraycopy(unSortedObjects, 0, this.sortedObjects, 0, size); System.arraycopy(unsortedStrings, 0, this.sortedStrings, 0, size); if (size > 1) quickSort(0, size - 1); } }
/** * Return a new sorted collection from this unsorted collection. * Sort using quick sort. */ public void sort(Object[] unSortedObjects, String[] unsortedStrings) { int size = unSortedObjects.length; this.sortedObjects = new Object[size]; this.sortedStrings = new String[size]; //copy the array so can return a new sorted collection System.arraycopy(unSortedObjects, 0, this.sortedObjects, 0, size); System.arraycopy(unsortedStrings, 0, this.sortedStrings, 0, size); if (size > 1) quickSort(0, size - 1); } }
/** * Return a new sorted collection from this unsorted collection. * Sort using quick sort. */ public void sort(Object[] unSortedObjects, String[] unsortedStrings) { int size = unSortedObjects.length; this.sortedObjects = new Object[size]; this.sortedStrings = new String[size]; //copy the array so can return a new sorted collection System.arraycopy(unSortedObjects, 0, this.sortedObjects, 0, size); System.arraycopy(unsortedStrings, 0, this.sortedStrings, 0, size); if (size > 1) quickSort(0, size - 1); } }
/** * Return a new sorted collection from this unsorted collection. * Sort using quick sort. */ public void sort(Object[] unSortedObjects, String[] unsortedStrings) { int size = unSortedObjects.length; this.sortedObjects = new Object[size]; this.sortedStrings = new String[size]; //copy the array so can return a new sorted collection System.arraycopy(unSortedObjects, 0, this.sortedObjects, 0, size); System.arraycopy(unsortedStrings, 0, this.sortedStrings, 0, size); if (size > 1) quickSort(0, size - 1); } }
/** * Return a new sorted collection from this unsorted collection. * Sort using quick sort. */ public void sort(Object[] unSortedObjects, String[] unsortedStrings) { int size = unSortedObjects.length; this.sortedObjects = new Object[size]; this.sortedStrings = new String[size]; //copy the array so can return a new sorted collection System.arraycopy(unSortedObjects, 0, this.sortedObjects, 0, size); System.arraycopy(unsortedStrings, 0, this.sortedStrings, 0, size); if (size > 1) quickSort(0, size - 1); } }
/** * Return a new sorted collection from this unsorted collection. * Sort using quick sort. */ public void sort(Object[] unSortedObjects, String[] unsortedStrings) { int size = unSortedObjects.length; this.sortedObjects = new Object[size]; this.sortedStrings = new String[size]; //copy the array so can return a new sorted collection System.arraycopy(unSortedObjects, 0, this.sortedObjects, 0, size); System.arraycopy(unsortedStrings, 0, this.sortedStrings, 0, size); if (size > 1) quickSort(0, size - 1); } }