g.drawLine(startx, starty, endx, endy);Here's how you are likely to use this command in this assignment:
g.drawLine(10,20,100,50);Basically, the drawLine command takes four integer values and will plot a line which connects the starting coordinates with the ending coordinates.
EXAMPLE:
x |