摘要: 用一个范例来解释Integer的拆箱(本文来自黑马程序员的博客网站,为了方便以后查阅) 1 package com.blog; 2 3 public class boxing { 4 public static void main(String[] args){ 5 6 Integer c = 10;//Integer c = new Integer.valueof(10),从缓存中获取 7 Integer d = 10; 8 System.out.println(c.equals(d));//true, equals... 阅读全文
posted @ 2014-03-23 08:54 IT菜鸟~ 阅读(235) 评论(0) 推荐(0)