?? firstbean.java
字號:
public class FirstBean
{
//類成員變量,也就是JavaBean組件中的屬性
private String x;
private int y;
//不帶參數(shù)的構(gòu)造函數(shù),初始化類成員變量
public FirstBean()
{
this.x = "";
this.y = 0;
}
//get方法,返回x的值
public String getX()
{
return this.x;
}
//set方法,設(shè)置x的值
public void setX(String s)
{
this.x = s;
}
//get方法,返回y的值
public int getY()
{
return this.y;
}
//set方法,設(shè)置y的值
public void setY(int i)
{
this.y = i;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -