java代码066
文章目录
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);
}
}
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册⭐️ Admin快速开发: https://show.cool-admin.com/
赞 0⭐️ 官方文档: https://cool-js.com
赞 0⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld
赞 0