Create triangle.java