Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe06.iad.POSTED!8ad76e89!not-for-mail From: Arved Sandstrom User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: capitalize problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Lines: 11 Message-ID: X-Complaints-To: abuse@newsgroups-download.com NNTP-Posting-Date: Thu, 08 Sep 2011 00:51:40 UTC Organization: Public Usenet Newsgroup Access Date: Wed, 07 Sep 2011 21:51:38 -0300 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7691 On 11-09-07 09:21 PM, bob wrote: > What's the easiest way to capitalize the first letter of every word in > a string and lowercase the rest? There will be lots of possibilities here. :-) Being lazy, I offer up WordUtils.capitalizeFully(string) from Apache Commons Lang. AHS