i 绝望

依然

Miss Lang

java代码包装类----------Integer

总结:我的笔试挂了。。基础的继承不懂不会。我不知道到底是哪里的问题。

要好好反思

package com.da.ima2;

public class jrfk {
	// int整型不能直接转化为Integer/
	// 在实际转化的时候,将Integer 类的构造方法和Integer类内部的intValue()方法。是实现类型的转换
	public static void main(String[] args) {
		// Hint a=4224;
		Integer in = new Integer(42);
		int x = in.intValue();// 接收方
		System.out.println(x);
	}
}

  

 

posted on 2013-11-21 22:44  juewang  阅读(249)  评论(0编辑  收藏  举报

绝望依然

Miss Lang