Update Triangle.java

http://www.yodlecareers.com/puzzles/triangle.html