⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultvalue3.java

📁 这是一些java小程序的源码
💻 JAVA
字号:
//c3:DefaultValue3.java
// author:ZhangHongbin 
//This program is protected by copyright laws.
//Initialization value of primitive.  
public class DefaultValue3
{
	boolean t;
	char c;
	byte b;
	short s;
	int i;
	long l;
	float f;
	double d;
  
	void printDefault()
	{
		System.out.println("Primitive Data type  Initial value");
		System.out.println("boolean=" + t );
		System.out.println( "null=["+"] ");
		System.out.println( "char=[" + c + "] ");
		System.out.println( "byte=" + b);
		System.out.println("short=" +s);
		System.out.println( "int=" +i);
		System.out.println( "long=" +l);
		System.out.println("float=" +f);
		System.out.println("double=" +d);
  
	}
	public static void main(String[] args)
	{
		Primitive d = new Primitive();
		d.printDefault();

	}
} 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -