@@ -0,0 +1,525 @@
+package com.tencent.java.collections;%0A%0A/**%0A * %E5%88%A4%E6%96%ADInteger %E7%9B%B8%E7%AD%89%E7%AC%A6%E5%8F%B7--in the range -128 to 127 %E6%98%AF%E7%BC%93%E5%AD%98%E7%9A%84%EF%BC%8C%E6%8C%87%E5%90%91%E5%90%8C%E4%B8%80%E4%B8%AA%E5%9C%B0%E6%96%B9%EF%BC%8C%E5%85%B6%E4%BB%96%E7%9A%84%E6%98%AFnew%E5%87%BA%E6%9D%A5%E7%9A%84%0A * %7B@link Integer valueOf()%7D%0A * http://blog.csdn.net/xiaojiesu/article/details/50215237%0A * @author ewanzhao%0A *%0A */%0Apublic class IntegerEqual %7B%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09testIntegerEqual(123,123);%0A%09%09%0A%09%09testIntegerEqual(12345,12345);%0A%09%7D%0A%0A%09private static void testIntegerEqual(Integer a, Integer b) %7B%0A%0A%09%09if(a == b) %7B%0A%09%09%09System.out.println(true);%0A%09%09%7D else %7B%0A%09%09%09System.out.println(false);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

测试整形的相等 逻辑