Created
February 8, 2018 21:46
-
-
Save kaecy/c4376399e6a02b628cb4defc4d760990 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 static void main(String args[]) | |
{ | |
String str = "abc"; | |
byte[] cstr = str.getBytes(); | |
cstr[0] = 'b'; | |
System.out.println(new String(cstr)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment