import java.awt.Color; public class DrawArrow { public static void main(String args[]) { StdDraw.create(512, 512); double n = 20*4; double h = 7*4; double a = 4*4; StdDraw.setColorRGB(255,128,0); StdDraw.go(100,100); StdDraw.penDown(); StdDraw.go(100 + n,100); StdDraw.go(100 + n,100 + h); StdDraw.go(100,100 + h); StdDraw.go(100,100 - a); StdDraw.go(100-Math.sqrt(3)*(a + h/2),100 + h/2); StdDraw.go(100,100 + h + a); StdDraw.go(100,100); StdDraw.penUp(); StdDraw.go(200,200); StdDraw.penDown(); StdDraw.go(200 - n,200); StdDraw.go(200 - n,200 + h); StdDraw.go(200,200 + h); StdDraw.go(200,200 - a); StdDraw.go(200+Math.sqrt(3)*(a + h/2),200 + h/2); StdDraw.go(200,200 + h + a); StdDraw.go(200,200); StdDraw.show(); } }