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);
        }
    }
}

评论

h
hw_7864

⭐️ Admin快速开发: https://show.cool-admin.com/

赞 0
h
hw_7864

⭐️ 官方文档: https://cool-js.com

赞 0
h
hw_7864

⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld

赞 0