package ch07_02;
public class IntegerTest {
	public static void main(String[] args) {
		System.out.println("Integer的最大值："+Integer.MAX_VALUE);
		System.out.println("Integer的最小值："+Integer.MIN_VALUE);
		Integer i1 = new Integer(123);
		Integer i2 = new Integer("123");
		System.out.println("两对象的引用相同吗："+(i1 == i2));
		System.out.println("两对象的值相同吗："+i1.equals(i2));
		System.out.println("Integer类型对应的int类型值："+i1.intValue());
		System.out.println("Integer类型对应的double类型值："+i1.doubleValue());
		int i3 = Integer.parseInt("12");
		int i4 = Integer.parseInt("34");
		System.out.println("两字符串转换为int求和："+i3 + i4);
		Integer a = 10;
		int i = a;
		System.out.println("Integer与int之间互相赋值并输出值："+i);
	}
}