« All Events
6 PM – Intro To Java
July 20, 2021 @ 6:00 pm - 7:00 pm
Today We Do
- We changed from Map<String, EmailMessage> to Map<String, List<EmailMessage>> for messageMap. This way the system can handle more than one email per person.
Homework
-
- Create a new method saveEmailMessageToFile(). This method should save messageMap to allMessages.json file. This should be very similar to saveEmailAccountsToFile() method.
- After you create this method, you should call this method from inside createNewEmail(Account verifiedAccount), after you create a new email and save the new email inside messageMap.