public String toString(){
  StringBuffer sb=new StringBuffer();
  char[] separator={'[',' '};
  for (int i=0; i < components.length; i++) {
    sb.append(separator);
    sb.append(components[i]);
    separator[0]=',';
  }
  sb.append(']');
  return sb.toString();
}

public String toString ( ) { StringBuffer sb = new StringBuffer ( ) ; char [ ] separator = { '[' , ' ' } ; for ( int i = 0 ; i < components . length ; i ++ ) { sb . append ( separator ) ; sb . append ( components [ i ] ) ; separator [ 0 ] = ',' ; } sb . append ( ']' ) ; return sb . toString ( ) ; }
returns a string representation of the vector .
