« All Events
9 AM – Intro To Java – Gamas
May 14, 2022 @ 9:00 am - 10:00 am
Today We Do
- We reviewed the practice quiz result about List, Bird class.
Homework
- In your Email Application project go to EmailAccount.java class.
- Add one more attribute, String phone number.
- Add this attribute to the constructor.
- Add getter and setter.
- Inside EmailApplicationMain.java, inside initializeEmailAccounts method, add phone number for every EmailAccount.
- Inside EmailApplicationMain.java, inside createEmailAccount(), ask user for their phone number. Pass the phone number when you create EmailAccount class.
- Inside EmailApplicationMain.java, inside listAllEmailAccounts(), display the user phone number.
- Look at example below
Welcome to AYCLOGIC Email System.
Please select from below
1. Create an Email Account
2. Login
3. List all Email Accounts
4. Exit
Enter your selection:1
CREATE EMAIL ACCOUNT
1. Enter your name: John Chen
2. Enter your email: john@ayclogic.com
3. Enter your password: abcd
4. Enter your phone number: (818) 222-1111
You have successfully created email account for John Chen.
Please select from below
1. Create an Email Account
2. Login
3. List all Email Accounts
4. Exit
Enter your selection:3
There are total of 4 email accounts in the system
1. Nathan Truong - nathan@ayclogic.com - (887) 888-8888
2. John Chen - john@ayclogic.com - (818) 222-1111
3. Gamas Chang - gamas@ayclogic.com - (888) 888-8888
4. Amber Kuo - amber@ayclogic.com - (886) 888-8888
Please select from below
1. Create an Email Account
2. Login
3. List all Email Accounts
4. Exit
Enter your selection: