« All Events
6 PM – Intro To Java – Gamas
January 20, 2022 @ 6:00 pm - 7:00 pm
Today We Do
- We finished Student Application.
- We learned about Map/HashMap.
Homework
- Continue on Jan20_HashMap.java
- Add code in run() method to call “findNameAndAge()” when user select “2. Find name to age”.
- Create a new Map<String, String> nameToEmail.
- Basically, we want to be able to add and find email from the map. This is very similar to what we did last week with nameToAge map.
-
Please select
1. Add name to age
2. Find name to age
3. Add email
4. Find email
Please make your selection (enter "exit" to quit):3
Enter a new name: gamas
Enter email: gamas@ayclogic.com
Please select
1. Add name to age
2. Find name to age
3. Add email
4. Find email
Please make your selection (enter "exit" to quit):4
Enter a new name: gamas
gamas's email is gamas@ayclogic.com.
Please select
1. Add name to age
2. Find name to age
3. Add email
4. Find email
Please make your selection (enter "exit" to quit):2
Enter a new name: amber
amber is 13 years old.
Please select
1. Add name to age
2. Find name to age
3. Add email
4. Find email
Please make your selection (enter "exit" to quit):