Last active
December 28, 2015 09:58
-
-
Save Dark32/7482346 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
Object test = new Object(){public String sS = "4";}; | |
//String str = test.sS; | |
Field f = test.getClass().getDeclaredField("sS"); | |
f.setAccessible(true); | |
String str = (String)f.get(obj); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment