Method Call
Call: drawLine(3, 5, 1, 1);
Command to be executed: Draw a line from point (3,5) to point (1,1)
// Draw a line from point (x1, y1) to point
//(x2, y2)
public void drawLine
(int x1, int y1, int x2, int y2)
Previous slide
Next slide
Back to first slide
View graphic version