American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM Intro to Java – Alex

June 18, 2022 @ 1:00 pm - 2:00 pm

Today We Did:
  1. We continued and were able to finish up the RestaurantMap project which used HashMap.
  2. We learned more about how to add things into a HashMap as well as how to get things back from the HashMap.
For Homework:
  1. Go back to your School System project and create a new file called SchoolSystemUsingHashMap.java
  2. In that file, create a String variable for the menu (which you can find in the SchoolSystem.java class) and also create a HashMap to store the Students in.
  3. Create two methods for adding in a student and also listing all the students that you have added in. Of course in these 2 methods, you need to add new student to the Map that you created in #2 and listing all students means looping through all elements in the Map.
  4. The key can be the Student’s name.

Details

Date:
June 18, 2022
Time:
1:00 pm - 2:00 pm
Event Categories:
,
Verified by MonsterInsights