Each of the following class definitions has errors. Find as many as you can.
Assume the following declaration exists.
enum Coffee { MEDIUM, DARK, DECAF }Find the error(s) in the following switch statement.
// This code has errors!Coffee myCup = DARK;switch (myCup){ case Coffee.MEDIUM : System.out.println("Mild flavor."); break; case Coffee.DARK : System.out.println("strong flavor."); break; case Coffee.DECAF : System.out.println("Won't keep you awake."); break; default: System.out.println("Never heard of it.");}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.