I\'m trying to replace a character at a specific index in a string.
What I\'m doing is:
String myName = \"domanokz\"; myName.charAt(4) = \'x\';
Turn the String into a char[], replace the letter by index, then convert the array back into a String.
String myName = "domanokz"; char[] myNameChars = myName.toCharArray(); myNameChars[4] = 'x'; myName = String.valueOf(myNameChars);