Skip to content
Related Articles

Related Articles

Scala Char toLower() method with example
  • Last Updated : 11 Nov, 2019

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#

filter_none

edit
close

play_arrow

link
brightness_4
code

// Scala program of toLower()
// method
  
// Creating object
object GfG
  
    // Main method
    def main(args:Array[String])
    {
        // Applying toLower() method 
        val result = 'A'.toLower
          
        // Displays output
        println(result)
      
    }

chevron_right


Output:

a

Example: 2#

filter_none

edit
close

play_arrow

link
brightness_4
code

// Scala program of toLower()
// method
// Creating object
object GfG
  
    // Main method
    def main(args:Array[String])
    {
        // Applying toLower() method
        val result = 'Z'.toLower
          
        // Displays output
        println(result)
      
    }

chevron_right


Output:

z



My Personal Notes arrow_drop_up
Recommended Articles
Page :