title: Creating simple Student class
body: <p>I'm creating a class using java and it's a basic class to understand objects,methods etc.. anyways the class name is Student and it is supposed to assign a student ID to each newly created object. Student ID's start at 1000000 and increment by 1, so every new object should have the class assign a student ID, 10000001, 100000002 etc..</p>
  
  <pre><code>public class Student {
  
   private static long nextID=10000000;
   private long studentID;
   //etc..
  
   public Student (String name, long studentID, int count, double total score) {
          totalScore=0;
          count=0;
          this.name=name;
          studentID=nextID;
          nextID++;
  
   }
  
   public long getStudentID() {
         return nextID;`
   }
  </code></pre>
  
  <p>however when I create objects of this class the student ID keeps giving everyone the same student number, 10000000. please help</p>