Java 读取数据储存数据

不会做作业,谁帮我做下啊有一个ClassAddress,ClassAddressBook,Address.txtClassAddress中有firstName,lastN... 不会做作业,谁帮我做下啊
有一个Class Address, Class AddressBook,Address.txt
Class Address 中有firstName, lastName,
streetAddress, city, province, postalCode, country, phoneNumber, and emailAddress.
Class AddressBook 中有一个ArraryList<Address>和addAddress(),deletAddress()

Address.txt 中有xml形式的3个不同人的信息。
像这样 <address>
<firstName
Peter
</firstname>
<lastName>
Mohr
</lastName>

问题是在一个class中写2个method

Write another class called AddressParser.java that must have the following:
 An object of AddressBook class.
 A method that will take a file name (String type) as a parameter, parse the file, create an
object of Address class for each address in the file and add the created object to the object
of AdressBook.
 Another method that will take two parameters one is of AddressBook class and the other
is of type String for file name. The task of the method is to save each address from the
parameter of AddressBook class to the file passed as the other parameter. The address
will be saved to the file in xml format.
展开
 我来答
ycdxg
2010-07-27 · TA获得超过410个赞
知道答主
回答量:407
采纳率:0%
帮助的人:310万
展开全部
你这学生,你是学习编程的,有困难怎么让别人做了呢,你应该这么问,要解决你这个问题有什么好的办法,然后大家给你一些方法后,你自己去写,这样你才会有提高呀
百度网友920bb04
2010-07-27 · TA获得超过122个赞
知道答主
回答量:103
采纳率:100%
帮助的人:57.9万
展开全部
帮你做作业怎么着也算是力气活
零分怎么行呢
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式