title: Finding the middle letter and make it uppercase.. am stuck and the end .. :(
body: <p>Here am finding the middle letter of each element of the array and making it upper case and merge it so that it'll give me a result like e:g-  {bOy, inDia, apPle}</p>
  
  <p>Following is the code am trying till now.</p>
  
  <pre><code>public class FindMiddle {
  
      public static void main(String[] args) {
  
          ArrayList&lt;String&gt; al = new ArrayList&lt;String&gt;();
  
          al.add("boy india apple");
  
          String str[] = al.toArray(new String[al.size()]);
          String newar[];
          String delimiter = " ";
  
          newar = str[0].split(delimiter);
  
          for (int i = 0; i &lt; newar.length; i++) {
              char[] c = newar[i].toCharArray();
              for (int j = 0; j &lt; c.length; j++) {
                  if (j == c.length / 2) {
                      c[j] = Character.toUpperCase(c[c.length / 2]);
                      System.out.println(c[j]);
                  }
                  newar[i] += c[j];
              }
          }
      }
  }
  </code></pre>
  
  <p>It's only giving me O D P.</p>
  
  <p>I want them merged with the original elements like bOy inDia apPle.</p>