Untitled
unknown
plain_text
4 years ago
814 B
8
Indexable
StudentManagement std = new StudentManagement();
std.addStudent(new Student("Nguyen Van An", "17020001", "[email protected]"));
students[0].setGroup("K62CC");
std.addStudent(new Student("Nguyen Van E", "17020005", "[email protected]"));
students[1].setGroup("K62CD");
std.addStudent(new Student("Nguyen Van C", "17020003", "[email protected]"));
std.addStudent(new Student("Nguyen Van D", "17020004", "[email protected]"));
std.addStudent(new Student("Nguyen Van B", "17020002", "[email protected]"));
students[4].setGroup("K62CC");
System.out.println(std.studentsByGroup());
System.out.println(std.studentsByGroup());
std.removeStudent("17020005");
System.out.println(std.studentsByGroup());Editor is loading...