• Post Reply Bookmark Topic Watch Topic
  • New Topic

Strings

 
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!