SIMPLE SHAPE


Drawing lines in Java is pretty easy. Here's the command:
   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:


Compile this and see what you get.
x

ASSIGNMENT: Create the following shape as an applet and as a LOGO design. Display both on a web page along with the code to create each (displayed in two separate textareas).