java将信息保存到文本文件中 [英] java save information into text file

查看:501
本文介绍了java将信息保存到文本文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题陈述:
需要开发一个简单的GUI(图形用户界面)应用程序来进行选民登记.
代码应采用用户数据形式,并将其保存到文本文件中.
创建投票器类和GUI.
选民类必须具有以下属性:

>>国民身份证号(应为主键)
>>名称
>>父亲/丈夫的名字
>>年龄
>>地址
>>省

在上面的GUI应用程序中,当用户单击保存"按钮时,它将从表单中获取数据并存储到文本文件名"voter.txt"中.必须通过单击退出"按钮来退出应用程序.

图片在此处上传 http://2.bp.blogspot.com/__M5L-C3oo0s/TNp-zvq7EpI/AAAAAAAAAH8/u-u79x0-8GQ/s1600/cs614%2Bsecond.JPG [

Problem Statement:
required to develop a simple GUI (Graphical user interface) application for the registration of voters.
code should take data form user and save it into a text file.
make voter class and a GUI.
The Voter Class must have following attributes:

>> National ID Card Number (This should be primary key)
>> Name
>> Father/Husband’s name
>> Age
>> Address
>> Province

In the above GUI application, when the user clicks "Save" button then it will take the data from the form and store into text file name "voter.txt". The application must quit by clicking "Exit" button.

image is uploaded herehttp://2.bp.blogspot.com/__M5L-C3oo0s/TNp-zvq7EpI/AAAAAAAAAH8/u-u79x0-8GQ/s1600/cs614%2Bsecond.JPG[^]

推荐答案

ok
but will you please give me some hints to solve this problem by my self :)


这篇关于java将信息保存到文本文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆