// test_heapsort.java class test_heapsort { test_heapsort() { double vecd[] = {3.0, 5.0, 4.0, 1.0, 6.0, 2.0}; double vecd2[] = {2.0, 5.0, 4.0, 1.0, 6.0, 3.0}; int index[] = new int[6]; int n = 6; System.out.println("test_heapsort.java starting"); heapsort H = new heapsort(); System.out.println("sort vector of double, n="+n); for(int i=0; i