Search:

Type: Posts; User: Json

Search: Search took 0.16 seconds.

  1. Thread: How To Use Enums

    by Json
    Replies
    6
    Views
    9,282

    Re: How To Use Enums

    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()) {
    ...
  2. Thread: How To Use Enums

    by Json
    Replies
    6
    Views
    9,282

    Re: How To Use Enums

    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
  3. Thread: How To Use Enums

    by Json
    Replies
    6
    Views
    9,282

    How To Use Enums

    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.
    ...
Results 1 to 3 of 3