JAVA实现2+2=5
一九八四吧
全部回复
仅看楼主
level 12
tintin_2009 楼主
2014年06月27日 07点06分 1
level 12
tintin_2009 楼主
2014年06月27日 07点06分 3
level 12
tintin_2009 楼主
import java.lang.reflect.Field;
public class K {
public static void main(String []args) throws Exception{
Class cache = Integer.class.getDeclaredClasses()[0];
Field c = cache.getDeclaredField("cache");
c.setAccessible(true);
Integer[] array = (Integer[]) c.get(cache);
array[132] = array[133];
int i = 2;
System.out.print(i+"+"+i+"=");
System.out.printf("%d",i + i);
}
}
2014年06月27日 07点06分 4
level 10
这啥ide
2014年06月27日 17点06分 5
ADT 基于eclipse的
2014年06月28日 05点06分
level 13
C++的程序有么?
2014年06月28日 00点06分 6
别人写的可能可以
2014年06月28日 05点06分
回复 tintin_2009 :谢了,我试一试。。。
2014年06月28日 08点06分
回复 tintin_2009 :这是C吧 而且这个代码只有16为位编译器才能实现 如果是32位要把a的赋值改成4
2014年06月28日 10点06分
level 11
LZ学java的?
2014年06月28日 09点06分 7

2014年06月28日 12点06分
回复 tintin_2009 :我也是 刚学...
2014年06月28日 12点06分
1