import java.io.*; public class MainForSortSearch { public static void main(String [] args) throws FileNotFoundException { Presidents Pres12 = new Presidents(); Pres12.loadArray(); System.out.println("The Presidents:"); Pres12.print(); // call method SelectionSortNums to sort the presidents array // in ascending order of president numbers Pres12.SelectionSortNums(); //Print the sorted num list: System.out.println("\n*******************************************************************"); System.out.println("The Presidents in sorted order of numbers:"); Pres12.print(); // call method SelectionSortNums to sort the presidents array // in ascending order of president terms Pres12.SelectionSortTermsSoFar(); //Print the sorted terms list: System.out.println("\n*******************************************************************"); System.out.println("The Presidents in sorted order of terms served so far:"); Pres12.print(); President findP = Pres12.binarySearch(11); if (findP != null) { System.out.println("Found the 11th President:"); findP.printInfo(); } } }