fork download
  1. import java.lang.reflect.Field;
  2. public class Main {
  3. public static void main(String[] args) throws Exception {
  4. Class cache = Integer.class.getDeclaredClasses()[0];
  5. Field c = cache.getDeclaredField("cache");
  6. c.setAccessible(true);
  7. Integer[] array = (Integer[]) c.get(cache);
  8. array[132] = array[133];
  9. System.out.printf("%d",2 + 2);
  10. }
  11. }
Success #stdin #stdout 0.07s 381248KB
stdin
Standard input is empty
stdout
5