
- This event has passed.
7 PM – Intro To Java – Roland
May 15, 2024 @ 7:00 pm - 8:00 pm
Gamas Sub
Today We Did
- We continued about SchoolSystem
- We learned about Map and HashMap.
- We created Address class.
- We created May15HashMapTutorial.java
Homework
- Continue with SchoolSystem. Add the following features
- Add method addSomeTeachers(). This is very similar with addSomeStudents().
- In findTeacher, it has to be case in sensitive.
- Add list all teachers.
- You want to add Map<String, Student> in your SchoolSystem.
- Create Map<String, Student> studentMap = new HashMap<>(); This is very similar to Map<String, Address> that we did in the class.
- Inside addSomeStudents() method, add the 3 students into the studentMap.
- Add “9. Find student using Map”. This is very similar to findAddressByName() which we did in the class.
9. Find student using Map 99. Exit