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 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

Uppercase to Lowercase

Wilson Yang

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

Joined: Jan 10, 2002
Posts: 60810

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

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

Joined: Oct 13, 2005
Posts: 38075
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

Joined: Oct 27, 2005
Posts: 19656

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.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
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