⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 studentstore.java

📁 编程之道--java程序设计入门源代码
💻 JAVA
字号:
/**
 * 我们设计的学生集合类
 */
 
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -