10 Replies Latest reply: Nov 25, 2007 11:29 PM by 807603 RSS

    Change value of string within an array?

    807603
      Alright, so im trying to change "hello" to "Aello", there fore im changing the first letter of the string to an "A". This string is within an array:

      This is what i have:

      System.out.println ((char)split[1].charAt(0))='a');

      but im getting an error