code066.java
package pack02;
import java.util.Vector;
//UserInfoList��
public class code066
{
private static code066 user = new code066(); //����private���ù��캯������ֹ���������µ�ʵ������
private Vector<String> vector = null;
public code066()
{
this.vector = new Vector<String>();
}
public static code066 getInstance()
{
return code066.user;
}
//����û�
public boolean addUserInfo(String userName)
{
if (userName != null)
{
this.vector.add(userName);
return true;
}
else
{
return false;
}
}
//�����û��б�
public Vector<String> getList()
{
return this.vector;
}
//�Ƴ��û�
public void removeUserInfo(String userName)
{
if (userName != null)
{
this.vector.removeElement(userName);
}
}
}