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