question: public void draw ( Graphics g , float xcoords [ ] , float [ ] 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 ) ; }
target:  Draws a decorated polyline