Snippets tagged “string-field”
1 snippet uses this tag.
- Best way to create enum of strings?Java
The best way to create an enum of strings in Java is to define the enum type with a String field, and then specify the possible values for the enum as string literals.