How to capitalize the first letter of word in a string using java?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1892765/capitalize-first-char-of-each-word-in-a-string-java">Capitalize First Char of Each Word in a String Java</a>  </p>
</blockquote>



<p>Example strings</p>

<pre><code>one thousand only
two hundred
twenty
seven
</code></pre>

<p>How do i change the first character of a string in capital letter and not change the case of any of the other letters. After change it should be</p>

<pre><code>One thousand only
Two hundred
Twenty
Seven
</code></pre>

<p>Note: I don't want to use the apache.commons.lang.WordUtils to do this.</p>
