// NAME: Liane Nakamura // STUDENT ID: 25806927 // Company.java // // ICS H22 Winter 2006 // Lab 3: The automatic tester for the Payroll application // // This class contains the main() method for your program. // It reads the input file whose name is specified in args[0] // and runs the Payroll application on this input file. // !!! // This code should not be modified!!! // !!! public class Company { public static void main(String[] args) { // The call to Payroll(args[0]) below assumes that the // Payroll class includes a constructor that can store // the name of the text file in the Payroll object it creates. // In particular, the Payroll class should probably include // an instance variable which stores this file name. // This instance variable can be then accessed by the modified // go() method executed on the Payroll object referred // to by the variable p // If you find this convienient, you can assume that the number // of employees specified in the input file does not exceed 100. //Payroll p = new Payroll(args[0]); Payroll p = new Payroll("inputfile.txt"); p.go(); System.out.println("\n\nThank you for using this program! Good-bye."); } }