//Define a triangle public class Triangle { public int[] x = new int[3]; public int[] y = new int[3];//vertices /* Constructor */ public Triangle() { x[0] = 100; y[0] = 10; x[1] = 150; y[1] = 10; x[2] = 125; y[2] = 50; } }