class Triangle{
inta,b,c,l;
public static void perimeter(){
l=a+b+c;
}
}
public class TriangleTest{
public static void main(String[] args){
Triangle t1= new Triangle();
t1.a=x;
t1.b=y;
t1.c=z;
t1.perimeter();
System.out.println("三角形t1的周长为:"+t1.l);
}
}