?? studentstore.java
字號:
/**
* 我們設(shè)計的學(xué)生集合類
*/
import java.util.Vector;
class StudentStore
{
private Vector vec;
public StudentStore()
{
vec = new Vector();
}
public String getStudentName(int i)
{
return ((Student)vec.get(i)).getStudentName();
}
public String getStudentNumber(int i)
{
return ((Student)vec.get(i)).getStudentNumber();
}
public String getStudentSex(int i)
{
return ((Student)vec.get(i)).getStudentSex();
}
public String getStudentBirthday(int i)
{
return ((Student)vec.get(i)).getStudentBirthday();
}
public String getStudentSpeciality(int i)
{
return ((Student)vec.get(i)).getStudentSpeciality();
}
public String getStudentAddress(int i)
{
return ((Student)vec.get(i)).getStudentAddress();
}
public void setStudentVec(Vector vec)
{
this.vec = vec;
}
public int size()
{
return vec.size();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -