Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Uppercase to Lowercase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Uppercase to Lowercase" Watch "Uppercase to Lowercase" New topic
Author

Uppercase to Lowercase

Wilson Yang
Greenhorn

Joined: Apr 24, 2008
Posts: 7
I am require to write a method deal with string inputs regardless of capitalization, Is there any java API method that can convert all uppercase letter in a string to lowercase?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

Where would be the first place you'd think to look for such a method?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Wilson Yang
Greenhorn

Joined: Apr 24, 2008
Posts: 7
Sorry, I found it, i was soooo stupid...
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38865
    
  23
Originally posted by Wilson Yang:
Sorry, I found it, i was soooo stupid...


Think nothing of it; everybody does that sort of thing from time to time!
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19696
    
  20

In fact, I've written several methods only to later find out there already is a valid solution available in the API. Like centering windows - I found out about the setLocationRelativeTo method months after I'd written my own centering method.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
jQuery in Action, 2nd edition
 
subject: Uppercase to Lowercase