Lab1 of ST

Description of triangle problem:

Function triangle takes three integers a,b,c which are length of triangle sides;

calculates whether the triangle is equilateral, isosceles, or scalene.

1.install junit hamcrest and eclemma

For junit and hamcrest I need to add two external jars 

for eclemma I install it from eclipse marketplace

 

2.code and test:

posted @ 2016-03-18 11:22  zyf1  阅读(128)  评论(0编辑  收藏  举报