文件名称:read-txt
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Text]
- 上传时间:
- 2014-12-13
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- p***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一、实现通讯录类(姓名、性别和电话号码),并为每个属性设置 set和get方法;
二、从通讯录的文本文件“record.txt”中读取数据放到通讯录类实例化的对象中,并合理组织存储结果方便查找。其文件样例如下,文件第一行为通讯录中人员的个数n,从第二行到第n+1行是n个通讯录; 每个通讯录占1行,每行依次为人员姓名、性别和电话号码,每个属性间以空格隔开。
-First, realize contacts class (name, gender, and phone number), and set the set and get methods for each attribute two, to read the data into address book contacts class to instantiate a text file " record.txt" in The object and store the results easy to find rational organization. Its sample files below, the first acts of the address book file personnel number n, the second line to the first line is the n n+1 contacts each address book accounts for 1 lines, each followed by a person' s name, gender and telephone number, separated by a space between each property.
二、从通讯录的文本文件“record.txt”中读取数据放到通讯录类实例化的对象中,并合理组织存储结果方便查找。其文件样例如下,文件第一行为通讯录中人员的个数n,从第二行到第n+1行是n个通讯录; 每个通讯录占1行,每行依次为人员姓名、性别和电话号码,每个属性间以空格隔开。
-First, realize contacts class (name, gender, and phone number), and set the set and get methods for each attribute two, to read the data into address book contacts class to instantiate a text file " record.txt" in The object and store the results easy to find rational organization. Its sample files below, the first acts of the address book file personnel number n, the second line to the first line is the n n+1 contacts each address book accounts for 1 lines, each followed by a person' s name, gender and telephone number, separated by a space between each property.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文本文档 (2).txt
新建文本文档.txt
读取某个学生的信息.txt
从文本读取的方法.txt