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\';
this will work
String myName="domanokz"; String p=myName.replace(myName.charAt(4),'x'); System.out.println(p);
Output : domaxokz