The default block is equivalent to the "else" part of an if-else statement. If the given test is false for all the cases, then the default section will be executed.
private static enum Days...
Type: Posts; User: helloworld922
The default block is equivalent to the "else" part of an if-else statement. If the given test is false for all the cases, then the default section will be executed.
private static enum Days...
:P A lot of the code I post is off the top of my head. It takes too much time to open up eclipse and type the same thing when I could just do it here. Yeah, I forgot you don't need the full...
public class SomeClass
{
public static enum Days {SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY}
public static void main(String[] args)
{
Days a =...