File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes string capitalise Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "string capitalise" Watch "string capitalise" New topic

string capitalise

Molefhi Sebaka

Joined: Feb 23, 2006
Posts: 1
i need help on how to capitalise the first letters in a string: example "my name is" to output "My Name Is"
Rusty Shackleford
Ranch Hand

Joined: Jan 03, 2006
Posts: 490
A quick look at the string class methods should tell you what two methods you can use for this.

"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
memati bas
Ranch Hand

Joined: Jan 29, 2006
Posts: 85
Robert Hill
Ranch Hand

Joined: Feb 24, 2006
Posts: 94
StringTokenizer has been deprecated for a long time and should not be used. There is a better alternative in the String class.

Also doing someones homework for them is counter-productive.
I agree. Here's the link:
subject: string capitalise
Similar Threads
Converting a String to Proper Case
splitting a StringBuffer into tokens?
Help Tomcat crashing.
Letters with accent
Single thread that runs 5 times, sleeps, then runs 5 more times