Scala Int *(x: Int) method with example
Last Updated :
03 Nov, 2019
The *(x: Int) method is utilized to return the product of the specified first int value and second int value.
Method Definition: (First_Int_Value).*(Second_Int_Value)
Return Type: It returns the product of the specified first int value and second int value.
Example #1:
object GfG
{
def main(args : Array[String])
{
val result = ( 100 ).*( 5 )
println(result)
}
}
|
Example #2:
object GfG
{
def main(args : Array[String])
{
val result = ( 10 ).*( 20 )
println(result)
}
}
|
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...