This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Strings  RSS feed

 
stacie benjamin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm VERY new to Java, so please excuse my ignorance on the subject. How do you capitalize just the first letter of a string and make sure all the rest are lower case. I can convert the whole thing to upper or lower, and I can get just the first letter to print as it was entered. No matter what the user enters in, I want the first letter capitalized and everything else lowercase. Thank you....
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about this ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!