code: @Override
  	public int lastIndexOf(long elem) {
  		// Find the location to insert the object at
  		int pos=binarySearch(elem);
  
  		// Not found
  		if(pos<0) return -1;
  
  		// Found one, iterate forwards to the last one
  		while(pos<(size-1) && elementData[pos+1]==elem) pos++;
  		return pos;
  	}
docs: Returns the index of the last occurrence of the specified object in
  this list.
  
  @param   elem   the desired element.
  @return  the index of the last occurrence of the specified object in
  this list; returns -1 if the object is not found.