@@ -0,0 +1,824 @@
+package sample.review.integer;%0A%0A/**%0A * @author soyona%0A * @Package sample.review.integer%0A * @Desc: Integer a = 127 %E8%BF%87%E7%A8%8B%0A * 1%E3%80%81%3Cclinit%E9%98%B6%E6%AE%B5%3E %E5%8F%98%E9%87%8F a %E5%88%9D%E5%A7%8B%E5%8C%96 0%E5%80%BC%EF%BC%8C%0A * 1.1%E3%80%81%E8%B0%83Integer.getInteger(String nm, int val)%0A * 1.2%E3%80%81Integer.valueOf(int i)%0A * 1.3%E3%80%81IntegerCache.cache%5Bi + (-IntegerCache.low)%5D%0A * 1.4%E3%80%81%E5%88%86%E6%9E%90%E4%B8%80%E4%B8%8B%E4%BB%A3%E7%A0%81%EF%BC%9A%0A *  if (i %3E= IntegerCache.low && i %3C= IntegerCache.high)//IntegerCache.low =-128%EF%BC%8CIntegerCache.high=127%0A *      return IntegerCache.cache%5Bi + (-IntegerCache.low)%5D;//%E8%BF%94%E5%9B%9E%E7%BC%93%E5%AD%98%0A *  return new Integer(i);//%E5%90%A6%E5%88%99 new %E6%96%B0%E5%AF%B9%E8%B1%A1%0A * @date 2018/5/30 14:22%0A */%0Aclass IntegerCacheReview %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Integer a = 127;%0A        Integer b = 127;%0A        System.out.println(%22a1=127,b1=127 :%22+(a == b));%0A%0A        Integer a1 = 128;%0A        Integer b1 = 128;%0A        System.out.println(%22a1=128,b1=128 :%22+(a1 == b1));%0A    %7D%0A%7D%0A

add static class IntegerCacheReview