Created
February 17, 2016 16:06
-
-
Save edesdan/eff2982d90ad18de83dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package playground; | |
import java.util.ArrayList; | |
import java.util.List; | |
public enum DaysOfMonth { | |
JAN,FEB,MAR; | |
@Override public final String toString() { return super.toString().toLowerCase(); } | |
static public final List<String> valuesAsList(){ | |
List<String> list = new ArrayList<>(); | |
for(DaysOfMonth v: values()){ | |
list.add(v.toString()); | |
} | |
return list; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment