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