基本数据类型应用

//基本数据类型应用
public class BT {
	public static void main(String[]args)
	{
		byte bt1=1;
		short st1=-37;
		int n=100;
		long long1;
		float f1=1.111f;
		double d1=3.56e8;
		char ch1,ch2;
		ch1=65;
		ch2='B';
		long1=12345678;
		System.out.println("bti="+bt1);
		System.out.println("st1="+st1);
		System.out.println("n="+n);
		System.out.println("long1="+long1);
		System.out.println("f1="+f1);
		System.out.println("d1="+d1);
		System.out.println("ch1="+ch1);
		System.out.println("ch2="+ch2);
	
	}

}

你可能感兴趣的:(基本数据类型应用)