American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

10 AM – Intro To Java

September 11, 2021 @ 10:00 am - 11:00 am

Today We Do
  1. We reviewed HashMap topic, how to use it. Key and Value datatype
  2. We added feature to find student using HashMap
Homework
  1. Inside SAT10AM_SchoolApplication, change initializeStudents() to also add all 4 students inside studentMap.
  2. Similar to “12. Find student using HashMap”, add new feature “13. Find teacher using HashMap”
  3. Inside SAT10AM_IntroToJava project, create a new Java file September11_HashMapExercise2.java. Add a new HashMap<String, String> nameToAddress. Create a small application to be able to add a new address and find an address according to its name continuously. Look at example below
  4. Welcome to AYCLOGIC address finder
    
    What do you want to do:
    1. Enter a new name and address
    2. Find an address according to name
    Enter your selection or 'exit' to quit: 1
    
    Enter a name: GAMas
    Enter an address: 9127 Ardendale Avenue, San Gabriel, CA 91775
    You have entered GAMas address.
    
    What do you want to do:
    1. Enter a new name and address
    2. Find an address according to name
    Enter your selection or 'exit' to quit: 2
    
    Enter a name: Gamas
    GAMas address is 9127 Ardendale Avenue, San Gabriel, CA 91775
    
    What do you want to do:
    1. Enter a new name and address
    2. Find an address according to name
    Enter your selection or 'exit' to quit: exit
    
    Bye bye
    

Details

Date:
September 11, 2021
Time:
10:00 am - 11:00 am
Event Categories:
,
Verified by MonsterInsights