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

📄 userbean.java

📁 这是我们学校教的j2me程序开发实例从入门到精通自带关盘的源代码
💻 JAVA
字号:
/* * UserBean.java * * Created on 2006年5月17日, 下午5:19 * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package cn.edu.uestc.pandawireless;import java.io.DataInputStream;import java.io.DataOutputStream;import java.io.IOException;/** * * @author 熊猫晓希 */public class UserBean {    private String uid;    private String pwd;    /** Creates a new instance of UserBean */    public UserBean() {    }    public void setUID(String uid)    {        this.uid = uid;    }    public String getUID()    {        return uid;    }    public void setPWD(String pwd)    {        this.pwd = pwd;    }    public String getPWD()    {        return pwd;    }    public void serialize(DataOutputStream dos)    {        try{            dos.writeUTF(uid);            dos.writeUTF(pwd);        }catch(IOException ex){                    }                    }    public static UserBean deserialize(DataInputStream dis)    {        UserBean user = new UserBean();        try{            user.uid = dis.readUTF();            user.pwd = dis.readUTF();        }catch(IOException ex){                    }        return user;            }        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -