实现一个登录注册功能

 

 

 

 

 

 

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

}

 

 

 

 

posted @ 2019-07-27 14:32  AxeBurner  阅读(198)  评论(0编辑  收藏  举报