public class ArrayList<E>{ public E get(int i) { . . . } public E set(int i, E newValue) { . . . } . . . private E[] elementData;}