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

📄 username.java

📁 软件开发过程通常包括五个阶段:分析、设计、编码、测试和发布。如果在Web应用开发中套用现成的Struts框架
💻 JAVA
字号:
/* * UserName.java * * Created on 2005年3月1日, 下午2:03 */package test.bean;/** * * @author LiuPOPO */public class UserName {        /** Creates a new instance of UserName */    public UserName() {    }        private String id;    private String name;    public String getId() {        return id;    }    public void setId(String id) {        this.id = id;    }    public String getName() {        if(this.id.equals("a")){            this.name = "your name is A";        } else if(this.id.equals("b")){            this.name = "your name is B";        } else if(this.id.equals("c")){            this.name = "your name is C";        } else if(this.id == "d"){ //这样判断的是两个对象,所以会返回false            this.name = "your name is D";        } else{            this.name = "your name is not know!";        }        return this.name;    }    public void setName(String name) {        this.name = name;    }    }

⌨️ 快捷键说明

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