aspose file tools*
The moose likes Beginning Java and the fly likes case convertor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "case convertor" Watch "case convertor" New topic
Author

case convertor

Harathi Rao
Ranch Hand

Joined: Oct 31, 2004
Posts: 42
Hi,

i have a very simple requirement given a string in any case i have to change it to a specific format like...

give string : callable or CaLLable or CALLABLE ie; given any case

i should get the output as :

new string: Callable

is there any method provided by java for this.


Thanks in Advance,
Harathi
madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
if your requirement is such that you need the first character as "CAPS" and the rest in "SMALL" then youd need to use the following

thanks


Money for nothing and Java for Free
SCJP, SCWCD
Harathi Rao
Ranch Hand

Joined: Oct 31, 2004
Posts: 42
Thank you very much...
Hari Sundharesan
Greenhorn

Joined: Dec 06, 2005
Posts: 13
wat a fool


hari
madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
I think that Hari Sundharesan has a better solution ? ? ?
Hari Sundharesan
Greenhorn

Joined: Dec 06, 2005
Posts: 13
yo madhup not mocking at u dude..take a chill pill..
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4462
    
    6

Originally posted by Hari Sundharesan:
wat a fool




Hari, your posts must NOT go against our "be friendly" rule that all forum members are required to follow. Everyone has to start somewhere and some will have a harder time than others. In the future, please refrain from posting anything other than constructive comments and/or questions.

Thanks for your cooperation.


Junilu - [How to Ask Questions] [How to Answer Questions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: case convertor