郁闷 写了好几题都这样 高手教教我
程序代码:
class student{ private String name; private String school; private String age; public void setname(String name){ this.name = name;} public void setschool(String school){ this.school = school;} public void setage(String name){ this.school = school;} public void seti(int i){ this.i = i;} public String getname(){ return name;} public String getschool(){ return school; } public String getage(){ return age; } public void said(String name,String school, String age){ System.out.println("我的名字叫"+name+"今年"+age+"岁"); } public class test{ student a = new student(); a.said(mark,fjnu,five); } }