三角形
public class A {
public static void main(String[] args) {
SanJiaoXing san = new SanJiaoXing ( ) ;
System.out.println( "边长分别为1,1,2的三角形周长为 :" + "\n" + san.BianChang ( 1.0 , 1.0 , 2.0 ) );
System.out.println( "边长分别为3,4,5的三角形周长为 :" + "\n" + san.BianChang ( 3.0 , 4.0 , 5.0 ) );
System.out.println( "边长分别为4,4,4的三角形周长为 :" + "\n" + san.BianChang ( 4.0 , 4.0 , 4.0 ) );
}
}
![](https://images2015.cnblogs.com/blog/1009597/201609/1009597-20160920112422684-1129789144.png)