title: Compilation error with ENUM class
body: <p>sorry for asking such basic question. I am trying some hands on ENUM. below is my code. I am getting some compilation error   . Any idea where is the problem. I want SAMPLEMAIL,BULKUSERS,ALLUSERS should be of integer type.</p>
  
  <pre><code> public enum EmailSendingOption {
  
          SAMPLEMAIL, BULKUSERS, ALLUSERS;
  
          private int emailSendingOptionType;
  
          private EmailSendingOption(String optionType) {
              int value = Integer.parseInt(optionType.trim());
              emailSendingOptionType = value;
          }
  
          public int getEmailSendingOption() {
              return emailSendingOptionType;
          }
  
      }
  </code></pre>
  
  <p>thanks.</p>