package liu0919; public class Sanjiao { public double z(double a,double b,double c) { return a+b+c; } }
package liu0919; public class A { public static void main(String[] args) { Sanjiao sj=new Sanjiao(); System.out.println("三角形的周长="+sj.z(23, 5, 8)); } }