- This event has passed.
1 PM Intro to Java – Alex
May 14, 2022 @ 1:00 pm - 2:00 pm
Today We Did:
- We continued by creating the Teacher class with all its attributes.
- Also, add in createTeacher() and how to list all the students out when asked to.
- Also, we learned about getters and setters and how to use them.
For Homework:
- Add in the getters and setters for the Teacher class if you have not done it already.
- When there are no teachers or students inside the list it should print out “We have no students/teachers in our system yet”
- Add in listAllTeachers() where it will list all the teachers out when you type in 6 into the menu.
Please select one of the items below 1. Add Student 2. Add Teacher 3. Find Student 4. Find Teacher 5. List all students 6. List all teachers Make your selection 1-6 (enter "exit" to quit): 6 LIST ALL TEACHERS We have no teachers in our system yet Please select one of the items below 1. Add Student 2. Add Teacher 3. Find Student 4. Find Teacher 5. List all students 6. List all teachers Make your selection 1-6 (enter "exit" to quit): 2 ADD NEW TEACHER Enter the first name: Alex Enter the last name: Lee Enter the age: 18 Enter the email: alexlee@ayclogic.com Enter the teacher's subject of expertise: Coding You have added the teacher Alex successfully Please select one of the items below 1. Add Student 2. Add Teacher 3. Find Student 4. Find Teacher 5. List all students 6. List all teachers Make your selection 1-6 (enter "exit" to quit): 6 LIST ALL TEACHERS Alex Lee is 18 years old and teaches the Coding subject