Java String toLowerCase() with Examples
Java String toLowerCase() method is used and operated over string where we want to convert all letters to lowercase in a string.
There are two types of toLowerCase() method as follows:
- toLowerCase(Locale loc): Converts all the characters into lowercase using the rules of the given Locale.
Note: Internally toLowerCase() works in similar way as toLowerCase(Locale.getDefault()) method.
public String toLowerCase()
public String toLowerCase(Locale loc)
The package view of the method is as follows:
--> java.util Package --> String Class --> toLowerCase() Method
Parameter: Locale value to be applied
Return Type: Returns string in lowercase letter
geeks for geeks
? know yo? bui you don't know me i know yoi bui you don't know me