标题:问题哟!!~找错
取消只看楼主
luyihuaa5201
Rank: 2
等 级:论坛游民
帖 子:254
专家分:10
注 册:2007-3-25
结帖率:66.67%
 问题点数:0 回复次数:0 
问题哟!!~找错

public class Student {

private String stuId;

private String stuName;

private String stuSex;

public void Studenter(String stuId , String stuName ,String stuSex){

this.stuId = stuId ;
this.stuName = stuName ;
this.stuSex = stuSex ;
}

public String getStuId() {
return stuId;
}

public void setStuId(String stuId) {
this.stuId = stuId;
}

public String getStuName() {
return stuName;
}

public void setStuName(String stuName) {
this.stuName = stuName;
}

public String getStuSex() {
return stuSex;
}

public void setStuSex(String stuSex) {
this.stuSex = stuSex;
}

/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根


Student[] student = new Student[3] ;



student[0] = new Student() ;

student[0].Studenter("1000" , "luyihua" , "男");


student[1] = new Student() ;

Studenter("1000" , "luyihua" , "男");

for(int i = 0 ; i < 3 ; i ++ ){

System.out.println(student[i].Studenter());
}

}
}
错在哪里呀???

搜索更多相关主题的帖子: private public return 
2007-06-02 23:42



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-144430-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.777880 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved