public String toString(){
  StringBuffer tempSpot=new StringBuffer("[");
  for (int counter=0, maxCounter=getPathCount(); counter < maxCounter; counter++) {
    if (counter > 0)     tempSpot.append(", ");
    tempSpot.append(getPathComponent(counter));
  }
  tempSpot.append("]");
  return tempSpot.toString();
}

public String toString ( ) { StringBuffer tempSpot = new StringBuffer ( "[" ) ; for ( int counter = 0 , maxCounter = getPathCount ( ) ; counter < maxCounter ; counter ++ ) { if ( counter > 0 ) tempSpot . append ( ", " ) ; tempSpot . append ( getPathComponent ( counter ) ) ; } tempSpot . append ( "]" ) ; return tempSpot . toString ( ) ; }
returns a string that displays and identifies this object ' s properties .
