Java String toLowerCase()The java string toLowerCase() method returns the string in lowercase letter. In other words, it converts all characters of the string into lower case letter. The toLowerCase() method works same as toLowerCase(Locale.getDefault()) method. It internally uses the default locale. Internal implementationSignatureThere are two variant of toLowerCase() method. The signature or syntax of string toLowerCase() method is given below: The second method variant of toLowerCase(), converts all the characters into lowercase using the rules of given Locale. Returnsstring in lowercase letter. Java String toLowerCase() method exampleTest it NowOutput: javatpoint hello string Java String toLowerCase(Locale locale) Method Example 2This method allows us to pass locale too for the various langauges. Let's see an example below where we are getting string in english and turkish both. Output: javatpoint hello string javatpo?nt hello str?ng Next TopicJava String toUpperCase |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India