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

📄 numberuseexample.java

📁 JAVA编程思想源代码 值得一下 很难找的
💻 JAVA
字号:
package chapter7;

public class NumberUseExample {

	Integer itger, itger2;

	Double dou, dou2;

	Byte by;

	Long lon;

	Short sho;

	short sho3;

	Number num;

	String bst;

	public NumberUseExample() {
		itger = new Integer(5);
		itger2 = new Integer("5");
		dou = new Double(3);
		dou2 = dou;
		by = new Byte("2");
		lon = new Long("533");
		sho3 = 55;
		sho = sho3;
		num = new Float("4.4444");
		bst = by.toString();
	}

	public void print() {
		System.out.println("itger is equals to itger2 is "
				+ itger.equals(itger2));
		System.out.println("dou is equals to dou2 is  " + dou.equals(dou2));
		System.out.println("dou is " + dou);
		System.out.println("by to string is " + bst);
		System.out.println("lon is " + lon + " and in this type max is "
				+ Long.MAX_VALUE);
		System.out.println("sho is " + sho + " and sho is equals to shoe is "
				+ sho.equals(sho3));
	}

	public static void main(String[] args) {
		NumberUseExample u = new NumberUseExample();
		u.print();

	}

}

⌨️ 快捷键说明

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