<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
/**
 * Title:
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:
 * @author Burton Rosenberg
 * @version 1.0
 *
 * 10 Sept 2003
 *
 */

public class QuickSortTest
{

  public static void main(String[] args) {

    ReadIntegers ri = new ReadIntegers(null, null) ;
    int [] a = new int [100] ;
    int j = 0 ;
    while ( true ) {
    try
    {
       int i = ri.nextInteger() ;
       a[j++] = i ;
    }
    catch ( ReadIntegersException rie )
    {
        break ;
    }
    }
    int count = j ;

    System.out.println("Input array:") ;
    QuickSort.printArray( a, 0, count ) ;
    QuickSort.quickSort(a, count) ;
    System.out.println("\nOutput array:");
    QuickSort.printArray( a, 0, count ) ;

  }
}
</pre></body></html>