« All Events
6 PM – Intro To Java
June 17, 2021 @ 6:00 pm - 7:00 pm
- We continued learning about Java Map/HashMap:
- We learned how to check if a key exists inside a map by using “containsKey()”
- We enhanced SchoolApplication to use Map/HashMap to find teacher more efficiently: Look at https://drive.google.com/drive/u/0/folders/1r-lCQqSdCloTQeSJEs5lJxkqMzCBtokL for the most updated code.
- Homework:
- We did findTeacherUsingMap() in the class. Do the same thing for student
- Add studentMap as one of SchoolMainApplication.java class attribute.
- Inside createStudent(), add the new Student into studentMap map.
- Add findStudentUsingMap() method similar to findTeacherUsingMap().
- Use this findStudentUsingMap() when user choose option “3”, find student.