Skip to content

Instantly share code, notes, and snippets.

@kaecy
Created February 8, 2018 21:46
Show Gist options
  • Select an option

  • Save kaecy/c4376399e6a02b628cb4defc4d760990 to your computer and use it in GitHub Desktop.

Select an option

Save kaecy/c4376399e6a02b628cb4defc4d760990 to your computer and use it in GitHub Desktop.

Revisions

  1. kaecy created this gist Feb 8, 2018.
    8 changes: 8 additions & 0 deletions .java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    public static void main(String args[])
    {
    String str = "abc";
    byte[] cstr = str.getBytes();

    cstr[0] = 'b';
    System.out.println(new String(cstr));
    }