/** * Returns the last element of the list. */ public E getLast() { return get(size - 1); }
/** * Returns the first element in the list. */ public E getFirst() { return get(0); }
/** * Returns the last element of the list. */ public E getLast() { return get(size - 1); }
/** * Returns the first element in the list. */ public E getFirst() { return get(0); }