Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uppercase to Lowercase

 
Wilson Yang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64610
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where would be the first place you'd think to look for such a method?
 
Wilson Yang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I found it, i was soooo stupid...
 
Campbell Ritchie
Sheriff
Posts: 48363
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic