@@ -0,0 +1,819 @@
+%0A// Shape2Triangle.java%0A// Lab14a%0A// Student starting version%0A%0Aimport java.awt.*;%0A%0Apublic class Shape2Triangle implements Shape %7B%0A%09public int xTitle;%0A%09public int yTitle;%0A%09public String name;%0A%09public int xDesc;%0A%09public int yDesc;%0A%09public String Desc;%0A%09%0A%09public Shape2Triangle() %7B%0A%09%09this.xTitle = 425;%0A%09%09this.yTitle = 35;%0A%09%09this.name = %22Triangle%22;%0A%09%09this.xDesc = 535;%0A%09%09this.yDesc = 275;%0A%09%09this.Desc = %22A triangle has 3 sides%22;%0A%09%7D%0A%0A%09public void drawShape(Graphics g) %7B%0A%09%09Polygon triangle = new Polygon();%0A%09%09triangle.addPoint(600, 100);%0A%09%09triangle.addPoint(500, 250);%0A%09%09triangle.addPoint(700, 250);%0A%09%09g.setColor(Color.black);%0A%09%09g.fillPolygon(triangle);%0A%09%7D%0A%0A%09public void displayName(Graphics g) %7B%0A%09%09g.drawString(name, xTitle, yTitle);%0A%09%7D%0A%0A%09public void displayNumSides(Graphics g) %7B%0A%09%09g.drawString(Desc, xDesc, yDesc);%0A%09%7D%0A%7D%0A

Create Shape2Triangle.java