title: How to print particular index to UpperCase and LowerCase
body: <p>I would like to know how to print a particular index to Upper and Lower Case?</p>
  
  <p>I don't know for the particular index to change?</p>
  
  <p><strong>For single index this is the code...</strong> </p>
  
  <pre><code>public class UpperAndLowerCase {
  
      public static void main(String[] args) {
  
          String input="India";
  
          int index=input.indexOf('i');
          String result=input.substring(0,index)+input.substring(index,index+1).toUpperCase()+input.substring(index+1);
  
          System.out.println(result);
      }
  
  }
  </code></pre>
  
  <p>The output of this program is : IndIa</p>
  
  <p>But I want the output like this:  <strong>indIa</strong> (In a given input String, first 'I' to 'i' and next 'i' to 'I')</p>