title: Java enum giving an error?
body: <p>When I try to give a value to my enum, it gives me this error:</p>
  
  <p>constructor status in enum status cannot be applied to given types; STATUS_OPEN(0),</p>
  
  <p>Why is this happening and how do I fix it? </p>
  
  <p>Here is my code thus far:</p>
  
  <pre><code> public enum Status 
   { 
       STATUS_OPEN(0),  
       STATUS_STARTED(1),  
       STATUS_INPROGRESS(2),  
       STATUS_ONHOLD(3),  
       STATUS_COMPLETED(4),  
       STATUS_CLOSED(5);  
  
   }
  </code></pre>
  
  <p>I'm using notepad and the JDK via command prompt - I don't want to use netbeans or eclipse at the moment. </p>
  
  <p>I was following this site: <a href="http://www.deepakgaikwad.net/index.php/2009/07/08/enums-in-java-5-code-examples.html" rel="nofollow noreferrer">link</a></p>
  
  <p>I've googled around and I couldn't really find why this issue is occurring or how to fix it by searching for the error.</p>