Well hello there and welcome, I must have missed that in my little post above, but yes you can iterate over the values of an enum.
for(final Day day : Day.values()) {
...
Type: Posts; User: Json
Well hello there and welcome, I must have missed that in my little post above, but yes you can iterate over the values of an enum.
for(final Day day : Day.values()) {
...
Glad you like it :)
You can define enums as their own types if you wish just like a class so you could have Day.java which just has a public enum in it.
// Json
Hello all,
This will be a little how to on the use of enums. I've seen a few questions pop up regarding these so I thought I'd write a little how to revealing some common methods etc for enums.
...