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 9, 2015 by WileyX66mqvn
0 votes
6 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 9, 2015 by CQMGas
0 votes
NULL
answered Sep 9, 2015 by MckBKF
0 votes
NULL
answered Sep 9, 2015 by MaryelleStur
0 votes
NULL
answered Sep 9, 2015 by JaxonMakutzs
0 votes
NULL
answered Sep 9, 2015 by ArturoAguile
0 votes
NULL
answered Sep 9, 2015 by JodLangler

...