Question: Pretend java.util.arraylist doesnt exist. You are to fully program the arrayList interface using Java generics and Javadoc. Please note - an interface doesn't account for

Pretend java.util.arraylist doesnt exist. You are to fully program the arrayList interface using Java generics and Javadoc. Please note - an interface doesn't account for implementation. It is just the function definitions and Javadoc. The following functions need to be present - please post screenshot of the code with these functions defined for example 
public boolean isEmpty() { return size == 0; }
 boolean add(E e) void add(int index, E element) void clear() boolean contains(Object o) boolean equals(Object o) E get(int index) int indexOf(Object o) boolean isEmpty() int lastIndexOf(Object o) E remove(int index) boolean remove(Object o) E set(int index, E element) int size() Object[] toArray()

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!