Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: enum

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default enum

    Can an enum have methods, fields and constructors? How? Why?


  2. #2

  3. The Following User Says Thank You to helloworld922 For This Useful Post:

    anis.laghaei (November 23rd, 2012)

  4. #3
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: enum

    But he could have found this himself easily with Google as it's one of the first hits. Why isn't he doing this, and why is he instead dumping all of his grunt work into the forum?

Similar Threads

  1. [SOLVED] Alternative to Enum
    By Doctor X in forum Java Theory & Questions
    Replies: 2
    Last Post: October 6th, 2012, 03:49 PM
  2. How to declare byte enum
    By alex007 in forum Java Theory & Questions
    Replies: 1
    Last Post: March 6th, 2012, 05:51 AM
  3. Help with simple enum problem
    By Prox in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 22nd, 2011, 03:19 PM
  4. [SOLVED] Enum types, how does he know %s value?
    By beer-in-box in forum Java Theory & Questions
    Replies: 11
    Last Post: September 17th, 2011, 12:47 PM
  5. [SOLVED] Enum problem
    By pajfilms in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 21st, 2011, 07:26 AM