@SuppressWarnings("unchecked") public synchronized E elementAt(int location){
  if (location < elementCount) {
    return (E)elementData[location];
  }
  throw arrayIndexOutOfBoundsException(location,elementCount);
}

@ SuppressWarnings ( "unchecked" ) public synchronized E elementAt ( int location ) { if ( location < elementCount ) { return ( E ) elementData [ location ] ; } throw arrayIndexOutOfBoundsException ( location , elementCount ) ; }
returns the element at the specified location in this vector .
