Skip to content

Instantly share code, notes, and snippets.

@jqno
Created February 24, 2017 10:50
Show Gist options
  • Save jqno/ccf3011e1017e4a1d71e0cdc8f513acc to your computer and use it in GitHub Desktop.
Save jqno/ccf3011e1017e4a1d71e0cdc8f513acc to your computer and use it in GitHub Desktop.
public class Looper {
public static void main(String[] args) throws Exception {
int five = 5;
Field field = Integer.class.getDeclaredField("value");
field.setAccessible(true);
field.set(five, 4);
for (Integer i = 0; i < 10; i++) {
System.out.println(i);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment