title: How to remove single character from a String by index
body: <p>For accessing individual characters of a String in Java, we have <code>String.charAt(2)</code>. Is there any inbuilt function to remove an individual character of a String in java? </p>
  
  <p>Something like this:</p>
  
  <pre><code>if(String.charAt(1) == String.charAt(2){
     //I want to remove the individual character at index 2. 
  }
  </code></pre>