user.java
来自「一个JAVA做的博客系统。系统采用JSP + JS + TOMCAT + MYS」· Java 代码 · 共 69 行
JAVA
69 行
package common;
public class User
{
String username, password, question, answer;
int popedom;
public String getUsername()
{
return username;
}
public void setUsername(String username)
{
this.username = username;
}
public String getAnswer()
{
return answer;
}
public void setAnswer(String answer)
{
this.answer = answer;
}
public String getPassword()
{
return password;
}
public void setPassword(String password)
{
this.password = password;
}
public String getQuestion()
{
return question;
}
public void setQuestion(String question)
{
this.question = question;
}
public int getPopedom()
{
return popedom;
}
public void setPopedom(int popedom)
{
this.popedom = popedom;
}
public User(String username)
{
this.username = username;
}
public User(String username, String password,
String question, String answer, int popedom)
{
this.username = username;
this.password = password;
this.question = question;
this.answer = answer;
this.popedom = popedom;
}
public void clear()
{
this.username = null;
this.password = null;
this.question = null;
this.answer = null;
this.popedom = 0;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?