📄 defaultvalue1.java
字号:
//c3:DefaultValue1.java
//author:ZhangHongbin
//This program is protected by copyright laws.
//Initialization value of primitive.
class Primitive
{
boolean t;
char c;
byte b;
short s;
int i;
long l;
float f;
double d;
}
public class DefaultValue1
{
public static void main(String[] args)
{
Primitive d = new Primitive();
System.out.println("Primitive Data type Initial value");
System.out.println("boolean=" + d.t );
System.out.println( "null=["+"] ");
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 + -