The following Java program draws a simple house using basic shapes

Computer Science Practical Exercise 1 House. The following Java program
draws a simple house using basic shapes. The shapes are drawn using paint(
Graphics g ) which is one of the standard methods used in Java. import java.awt.
*;. import java.applet.*;. // Program to draw a house. public class House extends
Applet.

Part of the document