public static String toPoints(Point2D.Double[] points) throws IOException {
  StringBuilder buf=new StringBuilder();
  for (int i=0; i < points.length; i++) {
    if (i != 0) {
      buf.append(", ");
    }
    buf.append(toNumber(points[i].x));
    buf.append(',');
    buf.append(toNumber(points[i].y));
  }
  return buf.toString();
}

public static String toPoints ( Point2D . Double [ ] points ) throws IOException { StringBuilder buf = new StringBuilder ( ) ; for ( int i = 0 ; i < points . length ; i ++ ) { if ( i != 0 ) { buf . append ( ", " ) ; } buf . append ( toNumber ( points [ i ] . x ) ) ; buf . append ( ',' ) ; buf . append ( toNumber ( points [ i ] . y ) ) ; } return buf . toString ( ) ; }
returns a point2d . double array as a points attribute value . as specified in http : / / www . w3 . org / tr / svgmobile12 / shapes . html # pointsbnf
