?? login.java
字號:
package com.chapter2;
public class Login
{
//定義類成員變量
public String userName;
public String password;
//初始化類成員變量
public Login()
{
this.userName = null;
this.password = null;
}
//設置類成員變量userName的值
public void setUserName(String s)
{
this.userName = s;
}
//返回類成員變量userName的值
public String getUserName()
{
return this.userName;
}
//設置類成員變量password的值
public void setPassword(String s)
{
this.password = s;
}
//返回類成員變量password的值
public String getPassword()
{
return this.password;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -