studentstore.java
来自「JSF 演示代码」· Java 代码 · 共 56 行
JAVA
56 行
/**
* 我们设计的学生集合类
*/
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();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?