Your example looks like how to convert a String to an enum. Not how to convert an enum to a String.
Type: Posts; User: Norm
Your example looks like how to convert a String to an enum. Not how to convert an enum to a String.
If you must use an enum, then change day to be a Week object:
Week day = ??? // no idea how to covert a String to a Week object
Then switch(day) will work if you Remove the Week. from the case...
The case statements expect a String constant. Change the values used in the case statements to be Strings.
For example create a class named Week. Add final static String variables using the names...
There is some missing details in your post:
What source line did the error happen on?
What is "We" in the message: We cannot be converted to String
The case statements expect a String constant. ...
Please copy the full text of the error message and paste it here. The message should show the source line where the error happens.
Note: An enum is not a String. The case statement wants String...