Consider the following interface for a list of strings:
public interface ListOfStringsInterface
{
public boolean add(String newEntry);
public void add(int index, String newEntry);
public void clear();
public boolean contains(String anEntry);
public String get(int index);
public int indexOf(String anEntry);
public boolean isEmpty()
public int lastIndexOf(String anEntry);
public String remove(int index);
public boolean remove(String anEntry);
public String set(int index, String newEntry);
public int size();
} // end ListOfStringsInterface
a. Write comments in javadoc style to describe each method in this interface. Assume that the behavior of the methods is analogous to that specified.
b. Define a class ListOfStrings that implements this interface. Begin by identifying and defining a group of core methods as described. Write a program that demonstrates your new class.