permaculture playing cards*
The moose likes Java in General and the fly likes How to change a string words to uppercase 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 » Java in General
Bookmark "How to change a string words to uppercase" Watch "How to change a string words to uppercase" New topic
Author

How to change a string words to uppercase

Esaki muthu
Greenhorn

Joined: Apr 05, 2012
Posts: 7
I need to change all the staring letters of a string to uppercase letter in java ..how can i do it?

If it changes automatically in jsp also welcome


Example :

String s=" the work is in progress now"


Output Required is

The Work Is In Progress Now


How can i achieve .....
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

Since your question has nothing to do with JDBC, I've moved it to a better suited forum. Please see CarefullyChooseOneForum (<= click that link).

As there is no function in Java to do so, you need to employ some processing of your own. What have you tried so far?


Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10172
    
    8

What have you tried so far and where are you stuck?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 80
check this

(Solution removed)
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

Eshwin, I've edited your post and removed the solution you've given. Please see NotACodeMill (<= click that link) for details.
 
 
subject: How to change a string words to uppercase
 
Similar Threads
lower case & upper case
symbol cannot be found
String replace
string to byte conversion
count # not right ?