Skip to content

Instantly share code, notes, and snippets.

@edesdan
Created February 17, 2016 16:06
Show Gist options
  • Save edesdan/eff2982d90ad18de83dd to your computer and use it in GitHub Desktop.
Save edesdan/eff2982d90ad18de83dd to your computer and use it in GitHub Desktop.
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