0
次は私のStudentオブジェクトのコンストラクタです。私は学生のリストを使用します。私はプログラムをオフにしても、私はまだすべてのコンテンツにアクセスすることができますので、リストを格納する必要があります。私が考えることができる唯一の方法は、リーダー/ライターとテキストファイルを使用することでした。複数のフィールドにライター/リーダを使用
1)この情報を保存する効率的な方法はありますか?
2)そうでない場合は、リーダライタを使って各フィールドをどのように保存できますか?
public Student(String firstName, String lastName, String gender, String
state, String school, String lit, String wakeUp, String sleep, String
social,String contactInfo, String country, String major) {
this.firstName = firstName;
this.lastName = lastName;
this.gender = gender;
this.state = state;
this.school = school;
this.lit = lit;
this.wakeUp = wakeUp;
this.sleep = sleep;
this.social = social;
this.contactInfo = contactInfo;
this.country = country;
this.major = major;
}