?? defaultvalue.java
字號:
//基本數據類型成員的初始化
class Primitive
{
boolean t;
char c;
byte b;
short s;
int i;
long l;
float f;
double d;
}
public class DefaultValue
{
public static void main(String args[])
{
Primitive d=new Primitive();
System.out.println("boolean="+d.t);
System.out.println("char=["+d.c+"]");
System.out.println("byte="+d.b);
System.out.println("short="+d.s);
System.out.println("int="+d.i);
System.out.println("long="+d.l);
System.out.println("float="+d.f);
System.out.println("double="+d.d);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -