File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60810
    
  65

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: 38075
    
  22
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: 19656
    
  18

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Uppercase to Lowercase
 
Similar Threads
String to Timestamp conversion
Find String that contains a given substring ignoring case
how does "toLowerCase" work?
Need a string helper function
how to search equalignorecase search with hashmap