Added comments in triangle.java.