/* This massive method-a-thon of a file contains the drivers for lab 7 and 8.*/ import java.io.Serializable; import java.io.*; import java.util.StringTokenizer; public class cis81 { private StudRec[] section; private int count, secnum; private StudRec temp; public cis81() throws IOException { count=0; System.out.println("Enter section number 1 or 2"); secnum=SavitchIn.readLineInt(); section=new StudRec[25]; } public void reads() throws IOException { int id, prodID, num, custID; double price; String date, prodLINE, line, x; StringTokenizer tokenizer; FileReader fr=new FileReader("order.data"); BufferedReader ins= new BufferedReader(fr); line=ins.readLine(); while(line!=null && countsection[j].idn) { temp=section[i]; section[i]=section[j]; section[j]=temp; } } } } public static void merge(cis81 a, cis81 b) throws IOException { int i=0, d=0; while (isection[j].gpa) { temp=section[i]; section[i]=section[j]; section[j]=temp; } } } } public static void mergegpa(cis81 a, cis81 b) throws IOException { int i=0, d=0; while (i