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

 

posted @ 2014-07-11 22:31  天天AC  阅读(171)  评论(0编辑  收藏  举报