A Java class that represents a triangle.