title: How to replace first occurance a character in string android
body: <p>In android how do I replace the first occurrence of a character in a string 
  with another? F</p>
  
  <p>or example I want to replace first occurrence of character <strong>v</strong> 
  in <strong>vivu</strong> with <strong>/</strong> so that output has to be <strong>/ivu</strong></p>
  
  <p>I found we can replace all occurrence of string with a character by <code>replace()</code> as follows:-</p>
  
  <pre><code>EditText n1=(EditText)findViewById(R.id.editText);
  TextView t1=(TextView)findViewById(R.id.textView);
  String s1= n1.getText().toString();
  s1=s1.replace(s1.charAt(i),'\')
  </code></pre>
  
  <p>But I don't want to change all occurences, just the first one</p>