Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Scala Char isLower() method with example

  • Last Updated : 03 Nov, 2019

The isLower() method is utilized to check if the stated character value is in lowercase or not.

Method Definition: def isLower: Boolean

Return Type: It returns true if the stated character is in lowercase else it returns false.

Example: 1#




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

Example: 2#




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



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!