How to set a character of a String?



Hi, I would like to know how to set a character of an String object.
It's just like the opposite of charAt() method which returns the char
at a given position.

TIA

.



Relevant Pages

  • Re: How to set a character of a String?
    ... It's just like the opposite of charAt() method which returns the char ... Are you talking about the indexOf("stringtoFind") method of the String ...
    (comp.lang.java.programmer)
  • Re: How to set a character of a String?
    ... It's just like the opposite of charAt() method which returns the char ... Use StringBuffer to create a new String. ...
    (comp.lang.java.programmer)
  • Re: How to set a character of a String?
    ... It's just like the opposite of charAt() method which returns the char ... You should use StringBuffer. ...
    (comp.lang.java.programmer)
  • Re: Accessing Arrays using strings....
    ... > from a text box and storing this in (char). ... how can I "store a char as a character" but how can I get hold of the ... first Character object from a String object? ...
    (comp.lang.smalltalk)
  • JPasswordField: getPassword return type
    ... Why does getPassword return a char[] when getText returned a String? ... It seems odd that the older method returned a String object while the ...
    (comp.lang.java.programmer)