Created
February 24, 2017 10:50
-
-
Save jqno/ccf3011e1017e4a1d71e0cdc8f513acc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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