Revision: 34108
Updated Code
at November 19, 2010 20:20 by trusktr
Updated Code
import java.io.*; public class Main { //source: Main.java public static void main(String[] args) { System.out.print("Enter the location of your employee data file: "); InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); MyString filename = null; try { filename = new MyString(""+ br.readLine()); } catch (IOException ioe) { System.out.println("IO error while trying to read your input!"); System.exit(1); } File f = new File(""+ filename); Employees starbucksEmps = new Employees(f); PayrollApp payroll = new PayrollApp(starbucksEmps); starbucksEmps.sort(); System.out.println(""); // NEW LINE System.out.println(starbucksEmps); System.out.println(""); // NEW LINE System.out.println(payroll.tableHeader()); for (int i=0; i<starbucksEmps.size(); i++) { System.out.println((payroll.tableRows())[i]); } System.out.println(""); // NEW LINE System.out.println(payroll.totalsRow()); System.out.println(payroll.averagesRow()); System.out.println(""); // NEW LINE } }
Revision: 34107
Updated Code
at October 17, 2010 15:24 by trusktr
Updated Code
import java.io.*; public class Main { //source: Main.java public static void main(String[] args) { System.out.print("Enter the location of your employee data file: "); InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); MyString filename = null; try { filename = new MyString(""+ br.readLine()); } catch (IOException ioe) { System.out.println("IO error while trying to read your input!"); System.exit(1); } File f = new File(""+ filename); Employees test = new Employees(f); Employees starbucksEmps = new Employees(test); PayrollApp payroll = new PayrollApp(starbucksEmps); starbucksEmps.sort(); System.out.println(""); // NEW LINE System.out.println(starbucksEmps); System.out.println(""); // NEW LINE System.out.println(payroll.tableHeader()); for (int i=0; i<starbucksEmps.size(); i++) { System.out.println((payroll.tableRows())[i]); } System.out.println(""); // NEW LINE System.out.println(payroll.totalsRow()); System.out.println(payroll.averagesRow()); System.out.println(""); // NEW LINE } }
Revision: 34106
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 17, 2010 12:00 by trusktr
Initial Code
import java.io.*; public class Main { //source: Main.java public static void main(String[] args) { System.out.print("Enter the location of your employee data file: "); InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); MyString filename = null; try { filename = new MyString(""+ br.readLine()); } catch (IOException ioe) { System.out.println("IO error while trying to read your input!"); System.exit(1); } File f = new File(""+ filename); Employees test = new Employees(f); Employees starbucksEmps = new Employees(test); PayrollApp payroll = new PayrollApp(starbucksEmps); starbucksEmps.sort(); System.out.println(""); // NEW LINE System.out.println(starbucksEmps); System.out.println(""); // NEW LINE System.out.println(payroll.tableHeader()); for (int i=0; i<starbucksEmps.size(); i++) { System.out.println((payroll.tableRows())[i]); } System.out.println(""); // NEW LINE System.out.println(payroll.totalsRow()); System.out.println(payroll.averagesRow()); System.out.println(""); // NEW LINE } }
Initial URL
Initial Description
The AppDriver for my employee payroll app.
Initial Title
cisp401 Main.java
Initial Tags
java
Initial Language
Java