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;
}