实现一个登录注册功能
package DemoMap; public class User { private String id; private String password; public User() { super(); } public User(String id, String password) { super(); this.id = id; this.password = password; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } @Override public String toString() { return "账号:" + id + ", 密码:" + password; } }
package DemoMap; public class User { private String id; private String password; public User() { super(); } public User(String id, String password) { super(); this.id = id; this.password = password; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } @Override public String toString() { return "账号:" + id + ", 密码:" + password; } }
package DemoMap; public class User { private String id; private String password; public User() { super(); } public User(String id, String password) { super(); this.id = id; this.password = password; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } @Override public String toString() { return "账号:" + id + ", 密码:" + password; } }