Scala Char toTitleCase() method with example Last Updated : 11 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report 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[String]) { // Applying toTitleCase() method val result = 'a'.toTitleCase // Displays output println(result) } } Output: A Example: 2# Scala // Scala program of toTitleCase() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying toTitleCase() method val result = ('h').toTitleCase // Displays output println(result) } } Output: H Comment More infoAdvertise with us Next Article Scala Char toTitleCase() method with example N nidhi1352singh Follow Improve Article Tags : Scala Scala Scala-Method Scala-Data Type Similar Reads 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 Scala Char toString() method with example The toString() method is utilized to convert a stated character into String. Method Definition: def toString: String Return Type: It returns the String representation of the stated character. Example: 1# Scala // Scala program of toString() // method // Creating object object GfG { // Main method de 1 min read Scala Char toLong() method with example The toLong() method is utilized to convert a stated character into Long or its ASCII value of type Long. Method Definition: def toLong: Long Return Type: It returns Long or ASCII value of the corresponding letter of type Long. Example: 1# Scala // Scala program of toLong() // method // Creating obje 1 min read Scala Char toUpper() method with example The toUpper() method is utilized find the uppercase of the stated character value. Method Definition: def toUpper: Char Return Type: It returns Char. Example: 1# Scala // Scala program of toUpper() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying to 1 min read Scala Char toShort() method with example The toShort() method is utilized to convert a stated character into type Short. Method Definition: def toShort: Short Return Type: It returns Short. Example: 1# Scala // Scala program of toShort() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying toS 1 min read Like