package com.homework.zw;public class Sanjiao{ private double border1; private double border2; private double border3; public double Zhouchang(double b1,double b2, double b3) { border1=b1; border2=b2; border3=b3; return border1+border2+border3; }}
package com.homework.zw;public class Textzhouchang { public static void main(String[] args) { Sanjiao sj=new Sanjiao(); System.out.println("三角形的周长为:"+sj.Zhouchang(25.3,24,40)); }}