title: Replacing one character for another in java
body: <p>What I want to do is replace one character for another in a string. More specifically what I need is as follows. 
  I have this code: <code>char userChar = 'X'</code> and I have <code>String name = "Annette"</code>
  I want to replace the first <code>n</code> in "Annette" with <code>userChar</code>. So using the <code>.replace()</code> method is not an option since it would replace all the <code>n</code>s. One thing that I can think of is using the <code>substring</code> method and cutting out all the text besides for the first "n" and then concatenating those two substrings back together, and then use a <code>StringBuilder</code> and an <code>insert</code> method to insert the 'X' in the <code>n</code>'s place. However this seems a little bit crazy. I was wondering if anybody had any other ideas?</p>