Update triangles.java