public void draw(Graphics g,int xcoords[],int[] ycoords){
  LinkedList<Point2D> points=new LinkedList<Point2D>();
  for (int i=0; i < xcoords.length; i++)   points.add(new Point2D.Double(xcoords[i],ycoords[i]));
  draw(g,points);
}

public void draw ( Graphics g , int xcoords [ ] , int [ ] ycoords ) { LinkedList < Point2D > points = new LinkedList < Point2D > ( ) ; for ( int i = 0 ; i < xcoords . length ; i ++ ) points . add ( new Point2D . Double ( xcoords [ i ] , ycoords [ i ] ) ) ; draw ( g , points ) ; }
draws a decorated polyline
