title: How can I convert the first letter of each sentence to uppercase and all other letters to lowercase?
body: <p>Part of grammar checking in my project.
  I have a paragraph and I want to change all the first letters of each sentence to be in upper case.
  All other letters in the sentence must be lowercase.</p>
  
  <pre class="lang-none prettyprint-override"><code>"lijo was very intelligent.but his Character was not Good.He Played FootBall .
  he is veryClever,and wise."
  
  output
  
  "Lijo was very intelligent.But his character was not good.He played football .
  He is veryclever,and wise."
  </code></pre>
  
  <p>I have done the above like this:</p>
  
  <pre><code>public static void main(String[] args) {
      String org= "lijo was very 'intelligent . but his Character was not Good.He Played    FootBall .he is veryClever,and wise.";
      String [] temp=org.split("\\.");
      int len=temp.length;
      String ne = ".";
      for(int i=0;i&lt;len;i++)
      {
          temp[i]=temp[i].toUpperCase();
          temp[i]=(temp[i].substring(0, 1)).toUpperCase()+(temp[i].substring(1, temp[i].length())).toLowerCase();
          System.out.println(temp[i]); 
      }
  }
  </code></pre>
  
  <p><strong>Is there any easier way to do this?</strong></p>