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