aspose file tools
The moose likes Java in General and the fly likes String conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "String conversion" Watch "String conversion" New topic

String conversion

Bob Beasley

Joined: Nov 06, 2002
Posts: 5
Any suggestions on converting a string to proper case?
ex: bob becomes Bob
I'm aware of string.toLowerCase()
and string.toUpperCase()
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Well, Microsoft does that in MSWord and the NEVER seem to get it right :roll:
Good Luck

"JavaRanch, where the deer and the Certified play" - David O'Meara
Sayed Ibrahim Hashimi
Ranch Hand

Joined: May 17, 2001
Posts: 148
Here's what i got for ya:

This only works for one word. I'm not sure exactly what you are trying to do, but I assume this will help a little.

SCJP 1.4<br /><a href="" target="_blank" rel="nofollow"></a>
Neil Laurance
Ranch Hand

Joined: Jul 18, 2002
Posts: 183
Another example:

Cheers, Neil :roll: :roll:
I agree. Here's the link:
subject: String conversion