« All Events
5 PM – Intro To Java – Gamas
January 29, 2022 @ 5:00 pm - 6:00 pm
Homework
- Transfer Teacher.java from SchoolApplication to SAT-5PM-IntroToJava project. Similar to how we copy Student.java in the class.
- Inside Jan22_HashMap.java, add a new Map for Teacher: teacherMap. This should be very similar to how you created studentMap in the class. But the key should be String and the Value data types would be Teacher.
- Add code that will enable “2. Add Teacher” and “4. Find Teacher” features.
- In this case, when you add a teacher, you should add the teacher into teacherMap. When you did it in SchoolApplication, you added the teacher into teacherList, but in here, you should add into the teacherMap. This is very similar to “1. Add Student” that we did in the class on 01/22.