Scala Int longValue() method with example
Last Updated :
30 Jan, 2020
The longValue() method is utilized to return the long value of the specified value.
Method Definition: def longValue(): Byte
Return Type: It returns the long value of the given value.
Example #1:
object GfG
{
def main(args : Array[String])
{
val result = ( 15 ).longValue
println(result)
}
}
|
Example #2:
object GfG
{
def main(args : Array[String])
{
val result = ( 1586 ).longValue
println(result)
}
}
|
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...