Scala String toLowerCase() method with example Last Updated : 29 Oct, 2019 Comments Improve Suggest changes Like Article Like Report The toLowerCase() method is utilized to convert all the characters in the String into the lowercase. Method Definition: String toLowerCase() Return Type: It returns the resultant string after converting each character of the string into the lowercase. Example: 1# Scala // Scala program of toLowerCase() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying toLowerCase method val result = "NIDHI".toLowerCase() // Displays output println(result) } } Output: nidhi Example: 2# Scala // Scala program of toLowerCase() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying toLowerCase method val result = "gEEKs".toLowerCase() // Displays output println(result) } } Output: geeks Comment More infoAdvertise with us Next Article Scala String toLowerCase() method with example N nidhi1352singh Follow Improve Article Tags : Scala Scala Scala-Method Scala-Strings Similar Reads Scala String toUpperCase() method with example The toUpperCase() method is utilized to convert all the characters of the stated string to uppercase. Method Definition: String toUpperCase() Return Type: It returns the resultant string after converting its all the character to uppercase. Example: 1# Scala // Scala program of toUpperCase() // metho 1 min read Scala String toCharArray() method with example The toCharArray() method is utilized to convert a stated string to CharArray. Method Definition: char[] toCharArray() Return Type: It returns CharArray. Example: 1# Scala // Scala program of toCharArray() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Appl 1 min read Scala - String Methods with Examples In Scala, as in Java, a string is a sequence of characters. In Scala, objects of String are immutable which means a constant and cannot be changed once created. In the rest of this section, we discuss the important methods of java.lang.String class. char charAt(int index): This method is used to ret 12 min read Scala Char toTitleCase() method with example The toTitleCase() method is utilized to convert the stated character to the title case character. Method Definition: def toTitleCase: Char Return Type: It returns Char. Example: 1# Scala // Scala program of toTitleCase() // method // Creating object object GfG { // Main method def main(args:Array[St 1 min read Scala Char toLower() method with example The toLower() method is utilized find the lowercase of the stated character value. Method Definition: def toLower: Char Return Type: It returns Char. Example: 1# Scala // Scala program of toLower() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying to 1 min read Like