/** Driver.java -- Let's test some sorting methods, such as selection and * insertion sort. */ import java.io.*; public class Driver { public static void main(String [] args) throws IOException { Array a = new Array(); Array b = new Array(a); Array c = new Array(a); Array d = new Array(a); a.swapSort(); b.selectionSort(); c.insertionSort(); d.bubbleSort(); // Just to check our answers to see if we sorted properly, output. System.out.println(a); System.out.println(b); System.out.println(c); System.out.println(d); } }