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.
Let me give you the background.
Lecturer totally useless.
Reads from book.
Has done no worked examples.
Robbed assignment from another lecturer.
Now the problem that I have, is that she has given us an abstract method to implement as follows
public abstract int getId();
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.
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.
Thanks for any help in advance guys.
Keith
Whats wrong with: