?? intdemo.java
字號:
//IntDemo.java
class IntDemo
{
public static int MAXINTEGER = 100;
public IntDemo()
{
}
public void demoUsing()
{
byte btByteValue = 5;
int nIntegerValue = 10;
short sShortCalue = 20;
long lLongValue=0;
for(;;)
{
lLongValue = lLongValue + btByteValue;
lLongValue = lLongValue + nIntegerValue;
lLongValue = lLongValue + sShortCalue;
if( lLongValue > MAXINTEGER )
break;
}
System.out.println("在本程序中整數變量的最大值:" +lLongValue);
}
public static void main(String[] args)
{
IntDemo aIntDemo = new IntDemo ();
aIntDemo.demoUsing ();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -