Question
. Declare an enum type called Color. It has 4 colors. (Use any 4 colors of your choice) - 4 points 2. Declare a Color
. Declare an enum type called Color. It has 4 colors. (Use any 4 colors of your choice) - 4 points 2. Declare a Color variable myColor and assign its value to any color of your choice. - 4 points 3. Use switch statement to case though (go through) each color and print out the text of that color. See below for the print statement - 6 points System.out.println("This is color of XXX"); 4. Write the definition of a class Student. The class has no constructors, one instance variable of type String called name, and one static variables of type int called studentCount. - 5 points 5. Assume the availability of class named BankAccount that provides a static method, printTotalAccount(), that accepts no arguments and has no return value. Write a statement that calls printTotalAccount() method. - 5 points
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started