cisp401系列主类
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cisp401系列主类相关的知识,希望对你有一定的参考价值。
The AppDriver for my employee payroll app.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: ");
MyString filename = null;
try {
filename = new MyString(""+ br.readLine());
}
System.
out.
println("IO error while trying to read your input!"); }
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 }
}
以上是关于cisp401系列主类的主要内容,如果未能解决你的问题,请参考以下文章
CISP401系列员工.java
cisp401系列数据提取器.java
cisp401系列MyString.java文件
cisp401系列PayrollApp.java版本
CISP401系列员工.java,是我工资单应用程序的一部分。
《CISP》计算环境安全