0

public class Date {
	private int day;
	private int month;
	private int year;
public class Phone {
	private int phone_country_code;
	private int phone_area_code;
	private int phone_number;

	public Phone(int phone_country_code, int phone_area_code, int phone_number) {
		super();
		this.phone_country_code = phone_country_code;
		this.phone_area_code = phone_area_code;
		this.phone_number = phone_number;
public class Student {
	private int student_number;
	private String student_name;
	private	String gender;
	private Phone student_phone;
	private Date student_birthdate;
	public Student(int student_number, String student_name, String gender, Phone student_phone,
			Date student_birthdate) {
		super();
		this.student_number = student_number;
		this.student_name = student_name;
		this.gender = gender;
		this.student_phone = student_phone;
		this.student_birthdate = student_birthdate;

我需要一些帮助:我正在编写一个关于 Java 的实习管理计划,但我遇到了一个问题,我有一个文本文件 (input.txt),其中包含所有学生和教师的信息,例如:

系,CME,计算机工程,Assoc.Prof.Dr.,Mehmet Hilal OZCANHAN,Res.Asst.,Elife KIYAK,Res.Asst.,Goksu TUYSUZOGLU,硬件培训,2,软件培训,4,免费,6系,CEV ,环境工程,Prof.Dr.,Ayse GUR,Res.Asst.,Sibel TOSUN,Res.Asst.,Ahmet TARAK,实践培训,3,理论培训,2,免费,5

我已经使用 Student 类对它们进行了分类,然后我必须列出所有类。

4

0 回答 0