Hi thanks for replying,
I managed to get it working using the code:
public void addItem()
{
Scanner scanner = new Scanner(System.in);
System.out.println("What item would you like to add: ");
item = scanner.next();
super.add(0, item);
}
This adds the item to Array, but my problem now is when I call a method to get the position of it, it is always 0 because that's what I stated at super.add(0, item);
If i remove the 0, the following error:
method add in class ArrayLinearList cannot be applied to given types:
required int,java.lang.String; found: java.lang.String
Do you know how to add the object into the available slot without specifying the int '0' ?
Thanks
//Got it working now