?? user.java
字號(hào):
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package mypack;import java.io.Serializable;/** * * @author Administrator */public class User implements Serializable { private static final long serialVersionUID = 1L; private String uname; private String upassword; private double money; public User() { } public User(String uname) { this.uname = uname; } public User(String uname, String upassword, double money) { this.uname = uname; this.upassword = upassword; this.money=money; } public String getUname() { return uname; } public void setUname(String uname) { this.uname = uname; } public String getUpassword() { return upassword; } public void setUpassword(String upassword) { this.upassword = upassword; } public double getMoney() { return money; } public void setMoney(double money) { this.money=money; } @Override public int hashCode() { int hash = 0; hash += (uname != null ? uname.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof User)) { return false; } User other = (User) object; if ((this.uname == null && other.uname != null) || (this.uname != null && !this.uname.equals(other.uname))) { return false; } return true; } @Override public String toString() { return "mypack.User[uname=" + uname + "]"; }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -