Question
Now Zara comes up with another new requirement as she is very happy about the applications that was created previously by you. Zara would like
Now Zara comes up with another new requirement as she is very happy about the applications that was created previously by you. Zara would like to get the information of the Students school wise. The school name along with the list of student names who belong to that school should be returned.
You are provided with the Student class that has the below attributes:
int studId
String studName
String schoolName
Your are provided with getters and setters. You are also provided with a method called retrieveStudentInfo(ArrayList
Note :In the main method you are provided with some sample data of Students.In the result map, please don't hardcode the name of the School.Iterate the list, take the school name and populate the map.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started