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