Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String conversion

 
Bob Beasley
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any suggestions on converting a string to proper case?
ex: bob becomes Bob
I'm aware of string.toLowerCase()
and string.toUpperCase()
Thanks
Bob
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, Microsoft does that in MSWord and the NEVER seem to get it right :roll:
Good Luck
 
Sayed Ibrahim Hashimi
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Neil Laurance
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another example:

Cheers, Neil :roll: :roll:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic