Consider a class Student that is used to represent student information. Write a
ID: 3770032 • Letter: C
Question
Consider a class Student that is used to represent student information. Write a method called indexStudents to create a Map of Student objects indexed by the id (i.e the key) of the student to which they refer. id is a String field in the Student class and uniquely identifies a student. The indexStudents method accepts an ArrayList of Student objects to be indexed as a parameter (ArrayList). It returns the indexed collection of Student objects. You may assume that there is a getter method in the Student class called getID() that is used to access the id field.
Explanation / Answer
yes
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.