title: Java auto increment id
body: <p>I am doing some coding in Java, but it doesn't work:</p>
  
  <pre><code>public class job
  {
     private static int count = 0; 
     private int jobID;
     private String name;
     private boolean isFilled;
  
     public Job(, String title, ){
        name = title;
        isFilled = false;
        jobID = ++count; 
    }
  }
  </code></pre>
  
  <p>I need to auto-increment the Id when a new entry is created. </p>