public class GraphicsDemo
1:
2: public class GraphicsDemo
3: {
4: public static final int indent = 5;
5: public static final int topWidth = 21;
6: public static final int bottomWidth = 4;
7: public static final int bottomHeight = 4;
8: public static void main(String[] args)
9: {
10: System.out.println(" Save the Redwoods!");
11:
12: Triangle top = new Triangle(indent, topWidth);
13: Box base = new Box(indent + (topWidth/2) - (bottomWidth/2),
14: bottomHeight, bottomWidth);
15: top.drawAt(1);
16: base.drawAt(0);
17: }
18: }