1. import java.util.*;
2.
3. public class EmployeeTest
4. {
5. public static void main(String[] args)
6. {
7. // fill the staff array with three Employee objects
14. // raise everyone's salary by 5%
18. // print out information about all Employee objects
}
24. }
25.
26. class Employee
27. {
28. public Employee(String n, double s, int year, int month, int day)
37. public String getName()
42. public double getSalary()
47. public Date getHireDay()
52. public void raiseSalary(double byPercent)
58. private String name;
59. private double salary;
60. private Date hireDay;
61. }
用java中的IO类读入并统计附件中英文小短文的单词数.
----------------解决方案--------------------------------------------------------
什么意思呀!!
只能作到这样了??
package bean;
import java.util.*;
public class EmployeeTest {
public static void main(String[] args) {
// fill the staff array with three Employee objects
// raise everyone's salary by 5%
// print out information about all Employee objects
}
class Employee {
public Employee(String n, double s, int year, int month, int day) {
}
public String getName() {
return name;
}
public double getSalary() {
return salary;
}
public Date getHireDay() {
return hireDay;
}
public void raiseSalary(double byPercent) {
}
private String name;
private double salary;
private Date hireDay;
}
}
----------------解决方案--------------------------------------------------------