Question: Suppose we want to extend the positionalList abstract data type with a method, indexOf(p), that returns the current index of the element stored at position
Suppose we want to extend the positionalList abstract data type with a method, indexOf(p), that returns the current index of the element stored at position p. Show how to implement this method using only other methods of the Positional- List interface (not details of our LinkedPositionalList implementation). Write actual code in Java Suppose we want to extend the positionalList abstract data type with a method, indexOf(p), that returns the current index of the element stored at position p. Show how to implement this method using only other methods of the Positional- List interface (not details of our LinkedPositionalList implementation). Write actual code in Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
