@Override public synchronized String toString(){
  if (elementCount == 0) {
    return "[]";
  }
  int length=elementCount - 1;
  StringBuffer buffer=new StringBuffer(elementCount * 16);
  buffer.append('[');
  for (int i=0; i < length; i++) {
    if (elementData[i] == this) {
      buffer.append("(this Collection)");
    }
 else {
      buffer.append(elementData[i]);
    }
    buffer.append(", ");
  }
  if (elementData[length] == this) {
    buffer.append("(this Collection)");
  }
 else {
    buffer.append(elementData[length]);
  }
  buffer.append(']');
  return buffer.toString();
}

@ Override public synchronized String toString ( ) { if ( elementCount == 0 ) { return "[]" ; } int length = elementCount - 1 ; StringBuffer buffer = new StringBuffer ( elementCount * 16 ) ; buffer . append ( '[' ) ; for ( int i = 0 ; i < length ; i ++ ) { if ( elementData [ i ] == this ) { buffer . append ( "(this Collection)" ) ; } else { buffer . append ( elementData [ i ] ) ; } buffer . append ( ", " ) ; } if ( elementData [ length ] == this ) { buffer . append ( "(this Collection)" ) ; } else { buffer . append ( elementData [ length ] ) ; } buffer . append ( ']' ) ; return buffer . toString ( ) ; }
returns the string representation of this vector .
