class SingletonList<E> extends AbstractList<E> {

  private final E e;

  public SingletonList(E e) {
    this.e = e;
  }

  @Override
  public E get(int index) {<FILL_FUNCTION_BODY>}

  @Override
  public int size() {
    return 1;
  }
}

    if (index != 0) {
      throw new IndexOutOfBoundsException();
    } else {
      return this.e;
    }
  
<methods>public boolean add(E) ,public void add(int, E) ,public boolean addAll(int, Collection<? extends E>) ,public void clear() ,public boolean equals(java.lang.Object) ,public abstract E get(int) ,public int hashCode() ,public int indexOf(java.lang.Object) ,public Iterator<E> iterator() ,public int lastIndexOf(java.lang.Object) ,public ListIterator<E> listIterator() ,public ListIterator<E> listIterator(int) ,public E remove(int) ,public E set(int, E) ,public List<E> subList(int, int) <variables>protected transient int modCount