- This event has passed.
7 PM – Intro to Java – Roland
May 22 @ 7:00 pm - 8:00 pm
Today We Did
- Finished the rest
- Reviewed Map and HashMap.
- hashmap.get(key)
- hashmap.put(key, value)
Homework
Submit your SchoolSystem.java file into the HW folder after finishing the following below.
- We want to add Map<String, Student> in our SchoolSystem
- Add “9. Find student using Map”. This is very similar to findAddressByName() which we did in the class (refer to the notes if you forgot)
- Implement the findStudentUsingMap() method
- This method should function the same as findStudent() (your choice if you want it to make it return a Student object or just print the Student’s information, just make sure the return type reflects that properly)
- It should ask for the user to provide a first and last name of a student, then use the map to search for the student
- the key for the hashmap should be a firstName + lastName
- ex. Student(“Gamas”, “Chang”, 100) = “GamasChang” is the key
- Implement the findStudentUsingMap() method
- Add “9. Find student using Map”. This is very similar to findAddressByName() which we did in the class (refer to the notes if you forgot)
- Upload your answer to google drive before next week Tuesday night.
If you have any questions feel free to email me rolandyang@ayclogic.com