The toLowerCase() Function is used to convert all the characters/letters of the String in lower case.
fun main() {
var x = "HeLLo"
var y = x.toLowerCase()
println("The String in lower case is : "+y)
}
In the above code, we have declared a String 'HeLLo', in which the letters 'H' and two 'L's are in upper case.
-Function1.png)
So, we have used the 'toLowerCase()' Function to convert them to lower case and assign to a variable 'y'.
-Function2.png)