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#
object GfG
{
def main(args : Array[String])
{
val result = ( 'c' ).isLower
println(result)
}
}
|
Example: 2#
object GfG
{
def main(args : Array[String])
{
val result = ( 'A' ).isLower
println(result)
}
}
|
Share your thoughts in the comments
Please Login to comment...