예제 #1
0
 @Override
 public void deleteStudent(Student student) {
   students.remove(student.getRollNo());
   System.out.println("Student: Roll No " + student.getRollNo() + ", deleted from database");
 }
예제 #2
0
 @Override
 public void updateStudent(Student student) {
   students.get(student.getRollNo()).setName(student.getName());
   System.out.println("Student: Roll No " + student.getRollNo() + ", updated in the database");
 }