September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
10
Task/Break-OO-privacy/Java/break-oo-privacy-2.java
Normal file
10
Task/Break-OO-privacy/Java/break-oo-privacy-2.java
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import java.lang.reflect.*;
|
||||
public class BreakString{
|
||||
public static void main(String... args) throws Exception{
|
||||
Field f = String.class.getDeclaredField("value");
|
||||
f.setAccessible(true);
|
||||
f.set("cat",new char[]{'t','i','g','e','r'});
|
||||
System.out.println("cat");
|
||||
System.out.println("cat".length());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue