Learning Outcome
At the end of this lesson, you will be able to:
- create an application that uses enumerated types
Silent Watching
Review
Lesson
- go over "Enumeration", Chapter 5
- Computer Based Problem Solving
- Java review of enums
Activity
- remember enumeration looks like this in Java:
public enum DaysOfWeek
{
Sunday,
Monday,
Tueday,
Wednesday,
Thusday,
Friday,
Saturday,
}
Daily Assignment
- create a program about the planets that uses enumeration to save position and name of the planets
- it should function like the one below
Extra
- figure out why you would use an enum over an array