Java 2+2=5

 1 import java.lang.reflect.Field;
 2 
 3 public class Main {
 4 
 5 public static void main(String[] args) throws Exception {
 6 
 7     Class cache = Integer.class.getDeclaredClasses()[0];
 8 
 9     Field c = cache.getDeclaredField("cache");
10 
11     c.setAccessible(true);
12 
13     Integer[] array = (Integer[]) c.get(cache);
14 
15     array[132] = array[133];
16 
17     System.out.printf("%d",2 + 2);
18 
19     }
20 
21 }
View Code
原文地址:https://www.cnblogs.com/sxmcACM/p/3838634.html