American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Java

June 15, 2021 @ 6:00 pm - 7:00 pm

  1. We completed School Application.
  2. We learned about Map and HashMap where we can store key, value pairs. Map is useful to search things quickly.
  3. Homework:
    1. During the class, we created June15_HashMap.java.
    2. We created a HashMap variable called, “nameToPhoneMap”.
    3. Add some codes to do the following:
      1. Add the following name and phone number pairs to the “nameToPhoneMap” HashMap:
        1. “brian”, 888-888-8888
        2. “john”, 123-123-1234
        3. Add a forever loop, so you can keep asking user for a name and the program will provide a phone number if it exists inside “nameToPhoneMap”. We did a similar feature with “nameToAgeMap” in the class.
        4. Your program should look like this
        5. Please enter a name: brian
          BRIAN's phone number is 888-888-8888
          
          Please enter a name: john
          John's phone number is 123-123-1234
          
          Please enter a name: exit
          Thank you for using AYCLOGIC phone book.

Details

Date:
June 15, 2021
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights