Question: Please Implement below method and write a class to test the result. import java.util.Iterator; import net.datastructures.*; public class MyArrayPositionalList implements PositionalList { @Override public int

Please Implement below method and write a class to test the result.

import java.util.Iterator; import net.datastructures.*;

public class MyArrayPositionalList implements PositionalList{

@Override public int size() { // TODO Auto-generated method stub return 0; }

@Override public boolean isEmpty() { // TODO Auto-generated method stub return false; }

@Override public Position first() { // TODO Auto-generated method stub return null; }

@Override public Position last() { // TODO Auto-generated method stub return null; }

@Override public Position before(Position p) throws IllegalArgumentException { // TODO Auto-generated method stub return null; }

@Override public Position after(Position p) throws IllegalArgumentException { // TODO Auto-generated method stub return null; }

@Override public Position addFirst(E e) { // TODO Auto-generated method stub return null; }

@Override public Position addLast(E e) { // TODO Auto-generated method stub return null; }

@Override public Position addBefore(Position p, E e) throws IllegalArgumentException { // TODO Auto-generated method stub return null; }

@Override public Position addAfter(Position p, E e) throws IllegalArgumentException { // TODO Auto-generated method stub return null; }

@Override public E set(Position p, E e) throws IllegalArgumentException { // TODO Auto-generated method stub return null; }

@Override public E remove(Position p) throws IllegalArgumentException { // TODO Auto-generated method stub return null; }

@Override public Iterator> iterator() { // TODO Auto-generated method stub return null; }

@Override public Iterable> positions() { // TODO Auto-generated method stub return null; }

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!