Consider a class Student that is used to represent student information. Write a
ID: 3770040 • Letter: C
Question
Consider a class Student that is used to represent student information. Write a method called indexStudents to create a Map<String, Student> 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<Student>). 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
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.