Results 1 to 2 of 2

Is it just me, or is there no enum keyword available for BB apps? What ... Software & Theme Development forum

  1. #1
    MrCmonster's Avatar
    MrCmonster no está en línea Stack level 3
    Join Date
    Dec 2007
    PIN/ID
    Ask Me
    Posts
    109

    Question No enum keyword?

    Advertisement



    Is it just me, or is there no enum keyword available for BB apps? What do you use instead? I looked at java.util.Enumeration, but that isn't what I want at all.

    I want something like:
    Code:
    public enum Day {
        SUNDAY, MONDAY, TUESDAY, WEDNESDAY, 
        THURSDAY, FRIDAY, SATURDAY 
    }
    Thanks for any help!
    David
    --
    When in doubt, pull the battery out.

  2. #2
    MrCmonster's Avatar
    MrCmonster no está en línea Stack level 3
    Join Date
    Dec 2007
    PIN/ID
    Ask Me
    Posts
    109
    Well looks like I found the answer to my problem...
    J2ME does not have support for the enum statement. UGH!

    So I guess I'll just do a bunch of:

    Code:
    private static final int XXX_YYY = 0;
    private static final int XXX_ZZZ = 1;
    etc.
    --
    When in doubt, pull the battery out.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •