If you want a Java program to draw a triangle (and triangle
is not a primitive method in the Graphics class), suggest two ways to do this using
primitive shapes. Test both your ideas using Java code.
The output from your applets should be similar to the
following: