- This event has passed.
9 AM – Intro To Java
January 24, 2021 @ 9:00 am - 10:00 am
- Homework:
- In School class add the following
- getInfo() – this method will return a combination of School Name and the type of school. For example, if this is Longden is the name and Elementary is the type, then getInfo() will return “Longden – Elementary”
- addTeacher(Teacher teacher) – this method will add a teacher to the School.teachers list.
- addStudent(Student student) – this method will add a student to the School.students list.
- In SchoolMainApplication
- Add code so when the user enters “4”, it will do the following
- use for loop to go through each School inside schools list.
- for each of the school, call getInfo() method and print the return value to the Shell.
- Add code so when the user enters “4”, it will do the following
- In School class add the following