Now I'm not sure about the task. Should I implement the class MyStore using a LinkedList or is it just comparison to the LinkedList. I would prefer the way of using MyStore recursively.Create a subclass of Store that implements a Linked List. Its constructor should take an element and the tail of the list. Use
null as the empty tail. Add a second constructor that takes only an element and creates a list with exactly this element. The
implementation should override toString to provide a human readable representation of the list.
Especially because of the following definition in the code:
For me, it makes sense to implement a recursive "MyStore" and there's no need for a LinkedList.def +(a: A): Store[A]