📄 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 + -