Organizational Research By

Surprising Reserch Topic

replace a character at a specific index in a string


replace a character at a specific index in a string  using -'java,string,replace,indexing,character'

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 gives an error.  Is there any method to do this?
    
asked Sep 10, 2015 by Ive42O
0 votes
10 views



Related Hot Questions



Government Jobs Opening


...