其他分享
首页 > 其他分享> > 系统业务

系统业务

作者:互联网

package bean; 
public class UserBean 
{ 
 private String username; 
 private String userpass; 
 public String getUsername() 
 { 
 return username; 
 } 
 public void setUsername(String username) 
 { 
 this.username = username; 
 } 
 public String getUserpass() 
 { 
 return userpass; 
 } 
 public void setUserpass(String userpass) 
 { 
 this.userpass = userpass; 
 } 
 public int check() 
 { 
 if(username.equals("zhangsan") && userpass.equals("wangwu")) 
 return 0; 
 else if(username.equals("wangwu") && userpass.equals("zhangsan")) 
 return 1; 
 else 
 return -1; 
 } 
}

  

标签:username,return,String,系统,业务,equals,userpass,public
来源: https://www.cnblogs.com/shuangshuangzi/p/15139453.html