the type of args inside the printStrings function, which is declared as type "String*" is actually Array[String].
If you want to change selection, open document below and click on "Move attachment"
Scala Function with Variable Arguments ;
i = i + 1;
}
}
}
When the above code is compiled and executed, it produces the following result:
C:/>scalac Test.scala
C:/>scala Test
Arg value[0] = Hello
Arg value[1] = Scala
Arg value[2] = Python
C:/>
Here, t<span>he type of args inside the printStrings function, which is declared as type "String*" is actually Array[String].
Previous Page
Print Version
PDF Version
Next Page
Advertisements
Modern Baby Names
Online Photo Editing
Advertisements
ASP.NET |
jQuery |
Summary
status
not read
reprioritisations
last reprioritisation on
suggested re-reading day
started reading on
finished reading on
Details
Discussion
Do you want to join discussion? Click here to log in or create user.