?? usevariable.java
字號(hào):
//變量說(shuō)明語(yǔ)句
public class UseVariable
{
public static void main(String args[])
{
boolean b = true;
short si = 128;
int i = -99;
long l = 123456789L;
char ch = 'J';
char chc = '中' ;
float f = 3.1415926F;
double d = -1.04E-5;
String s = "你好!";
System.out.println("布爾型變量 b= " + b);
System.out.println("短整型變量 si= " + si);
System.out.println("整型變量 i= " + i);
System.out.println("長(zhǎng)整型變量 l= " + l);
System.out.println("字符型變量 ch= " + ch);
System.out.println("字符型變量 chc= " + chc);
System.out.println("浮點(diǎn)型變量 f= " + f);
System.out.println("雙精度型變量d= " + d);
System.out.println("字符型對(duì)象 s= " + s);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -