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
11 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 10, 2015 by KiaPapathan
0 votes
NULL
answered Sep 10, 2015 by HueMoris
0 votes
NULL
answered Sep 10, 2015 by Mau54U
0 votes
NULL
answered Sep 10, 2015 by CarEhrhart
0 votes
NULL
answered Sep 10, 2015 by RoxieSheahan
0 votes
NULL
answered Sep 10, 2015 by GKDSiobhanu

...