当前位置: 代码迷 >> Java相关 >> 计算英文字母个数
  详细解决方案

计算英文字母个数

热度:503   发布时间:2007-06-20 17:15:40.0
计算英文字母个数
我这里有些题目,个位高手帮一下

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;
}
}


----------------解决方案--------------------------------------------------------