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