The librarian requires a display of the student name, the titles of the books and the dates that they were borrowed, corresponding to a specific student ID.
(b) Construct the method showDetails() that could be used in the main class, which accepts a student ID as a parameter, and then uses this to access the appropriate Student object producing the desired output as indicated above.