标题:计算英文字母个数
只看楼主
lzhp040424
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2007-3-29
 问题点数:0 回复次数:1 
计算英文字母个数
我这里有些题目,个位高手帮一下

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类读入并统计附件中英文小短文的单词数.
搜索更多相关主题的帖子: 字母 英文 
2007-06-20 17:15
luyihuaa5201
Rank: 2
等 级:论坛游民
帖 子:254
专家分:10
注 册:2007-3-25
得分:0 

什么意思呀!!

只能作到这样了??


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

2007-06-20 22:11



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-149016-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.031945 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved