JAVA Progamming

john_usa12
List.java.docx

import java.util.Iterator;

public interface List<AnyType>

{

void clear();

int size();

boolean isEmpty();

AnyType get(int index);

AnyType set(int index, AnyType newValue);

boolean add(AnyType newValue);

void add(int index, AnyType newValue);

AnyType remove(int index);

Iterator<AnyType> iterator();

}