title: java creating arraylist an abstract method that increments and stores the increment
body: <p>I need a little bit of help.
  I'm doing an assignment for college at the moment and I have hit a stumbling block on a small part of the problem.</p>
  
  <p>Let me give you the background. 
  Lecturer totally useless. 
  Reads from book. 
  Has done no worked examples.
  Robbed assignment from another lecturer.</p>
  
  <p>Now the problem that I have, is that she has given us an abstract method to implement as follows</p>
  
  <pre><code>    public abstract int getId();
  </code></pre>
  
  <p>This is to marry with the usual stuff of first name, last name, gender....... which will go into an arraylist. This I can do in my sleep.</p>
  
  <p>The problem is that I can cover for the functionality when I'm building the code by using a String and I can successfully build the rest of the assignment other than this part.
  It would be easier if she had left as a string as there is no mathematical computations being done.
  I cannot leave it as a string though as it is requirement which would get 50% deducted.</p>
  
  <p>Thanks for any help in advance guys.</p>
  
  <p>Keith</p>