public class WeirdCharStuff {
  public static void main(String []args) {
    String s = "it's cold";

    System.out.println("s = " + s);
    // System.out.println(s[0]);
    System.out.println(s.charAt(0));

    /* can only use charAt to read
       individual characters, not write them */
    // s.charAt(0) = 'I';

    /* like Python's:
       'I' + s[1:] */
    // String newOne = 'I' + s.substring(1);
    // System.out.println("newOne = " + newOne);
    // System.out.println("s = " + s);
    // s = newOne;
    // System.out.println("s = " + s);


    /* instead */
    s = 'I' + s.substring(1);
    System.out.println("s = " + s);
  }
}
