public String toString(){
  String s="";
  for (int i=0, n=coords.size(); i < n; i++) {
    Coord c=coords.get(i);
    s+="->" + c;
    if (speeds.size() > 1) {
      s+=String.format("@%.2f ",speeds.get(i));
    }
  }
  return s;
}

public String toString ( ) { String s = "" ; for ( int i = 0 , n = coords . size ( ) ; i < n ; i ++ ) { Coord c = coords . get ( i ) ; s += "->" + c ; if ( speeds . size ( ) > 1 ) { s += String . format ( "@%.2f " , speeds . get ( i ) ) ; } } return s ; }
returns a string presentation of the path ' s coordinates
