Completed half of Triangle.java.
Completed Triangle.