Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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) inside TestMain class. This method should return the HashMap that holds the school name and the list of student names belonging to that school.Use the given main method to test the code

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions