10/15作業分

This commit is contained in:
2026-10-15 16:30:26 +09:00
parent 4b2cb5a18b
commit 82628fc7f5
9 changed files with 394 additions and 145 deletions

View File

@@ -4,11 +4,20 @@ public class BasicCheck2 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Student student = new Student();
Student student1 = new Student(1, "鈴木一郎");
Student student2 = new Student(2, "田中花子");
Student student3 = new Student(3, "佐藤次郎");
student.studentId = 1;
student.name = "鈴木一郎";
// 学生情報表示
student1.printProfile();
student2.printProfile();
student3.printProfile();
student.printProfile();
// 現在の学生数表示
System.out.println(
"現在の生徒数:"
+ Student.getStudentCount()
+ "人");
}
}