-
1。文件和目录管理,对java.io.file类编程,采用煤炭。
1.文件和目录管理,使用java.io.File类编程,完成如下功能: (1)输入文件名称 (2)判断该文件名称是否存在 (3)若文件存在,判断是文件还是目录 (4)若是文件则输出文件的各种属性 (5)若是目录则输出其中包含的所有文件的名称 2.二进制文件的读写操作,用InputStream和OutputStream及其子类,设计并实现一个可以完成文件复制操作的程序。 3.文本文件的读写操作,编写一个文本文件分析程序,读入一个英文文本文件,统计其中单词、数字、标点符号等元素出现的次数,并记录单词总数。提示:对文件的分析可以使用StreamTokenizer类。 4.异常处理程序的编写,在上述三个程序中应用异常处理方法增加程序的错误处理能力。-1. File and directory management, the use of java.io.File class programming to complete the following functions : (a) input file name (2) to determine that the names of the existence of documents (3) If the file exists, or judgment is that the paper catalog (4) If the paper is output files the various attributes (5) If the directories containing the output of all documents name two. Binary file reading or writing, using InputStream and OutputStream and its sub-class design and realization of a complete copy of the operating procedures. 3. The text files and write, to prepare a text file analysis program, read an English text files, statistics words, numbers, punctuat
- 2022-05-05 14:18:17下载
- 积分:1
-
some code of j2me
j2me的各种源代码,可供参考,很好的学习材料-some code of j2me
- 2022-08-09 01:33:58下载
- 积分:1
-
在作业1的Employee和EmployeeDemo两个类基础上修改
1,重写Employee类的toString方法,返回Employee类的相关信...
在作业1的Employee和EmployeeDemo两个类基础上修改
1,重写Employee类的toString方法,返回Employee类的相关信息的字符串形式
重写Employee类的equals方法,如果两个Employee实例的名字和所属部门相同,返回true;
并在EmployeeDemo类里面验证上述两个方法
2,定义Clerk、Salesman、Engineer三个类,分别继承自Employee
为Salesman增加一个年销售额属性
为Engineer增加一个年消化人月数属性
3,将下面的描述反映到程序里
普通员工年终奖金分配方案为月薪×2
Salesman:销售额×2%+月薪×1.8
Engineer:年消化人月数×300+月薪×2.5
Clerk:月薪×2.5-1 of the Employee in the operation and EmployeeDemo two classes based on the modification 1, rewrite the Employee class toString method to return to Employee class-related information to rewrite the string form of Employee class equals method, if the two examples of Employee s name and their the same sector, return true and EmployeeDemo the above-mentioned two types of authentication methods inside 2, the definition of Clerk, Salesman, Engineer of three categories, respectively, inherited from the Employee as a Salesman for an additional annual sales for an additional attribute for the Engineer who was the number
- 2023-05-31 23:40:03下载
- 积分:1
-
这件事基于java编程,内容
这个事JAVA编程的基础,内容丰富,而且实战性强-This matter based on JAVA programming, content-rich, and strong real
- 2022-05-28 15:46:33下载
- 积分:1
-
3D Bluetooth are phone
都是3D蓝牙联机对战手机游戏,都是很经典的游戏,很值得珍藏,把后缀的.rar去掉,再把文件放到支持蓝牙的手机上就ok了 -3D Bluetooth are phone-line war games, are very classic game, it is worthy of collection, the suffix. Rar removed, and then file into a Bluetooth-enabled mobile phone on the ok
- 2022-01-25 22:55:41下载
- 积分:1
-
学习
一些Java最基础的程序,java初学者可以多看看或许有好处的-learing
- 2022-04-19 04:42:39下载
- 积分:1
-
使用EJB读取文件,并显示读取进度
使用EJB读取文件,并显示读取进度-use EJB read documents, which showed that reading progress
- 2023-06-28 15:05:04下载
- 积分:1
-
维纳滤波
维纳滤波-Wiener filter
- 2022-10-30 14:00:04下载
- 积分:1
-
用JAVA开发的交易处理程序
用JAVA开发的交易处理程序-developed with Java transaction processing
- 2022-07-12 23:42:03下载
- 积分:1
-
gei you a code
都市供求信息项目述,这是我从我买的书籍里下载下来的 ,呵呵 -gei you a code
- 2022-02-03 11:58:43下载
- 积分:1