Scala Char getDirectionality() method with example
Last Updated :
03 Nov, 2019
The getDirectionality() method is utilized to return byte which indicates the directionality property of the char value.
Method Definition: def getDirectionality: Byte
Return Type: It returns byte.
Example: 1#
object GfG
{
def main(args : Array[String])
{
val result = ( '7' ).getDirectionality
println(result)
}
}
|
Example: 2#
object GfG
{
def main(args : Array[String])
{
val result = 'B' .getDirectionality
println(result)
}
}
|
Share your thoughts in the comments
Please Login to comment...