Archive for July, 2010
toLowerCase() is Locale Based
Posted by Chirag Jain in Java, Java Strings on July 6, 2010
I have found this very interesting and informative post for Java developers. Many Java developers may not know that toLowerCase()
and toUpperCase()
methods of java.lang.String class are Locale based. Have a look here at javadocs for these methods.
toLowerCase()
internally calls toLowerCase(Locale locale)
. Same is the case for toUpperCase()
.