0

In this Scala Code object Solution { def main( args: Array [string] ) = { HelloWorld.main() }} why HelloWorld.main is used?

Scala Beginner

16th Mar 2021, 12:52 PM
ANSHU MISHRA
ANSHU MISHRA - avatar
2 ответов
+ 3
Looks like ClassName.MethodName
16th Mar 2021, 1:02 PM
D_Stark
D_Stark - avatar
0
Suppose I have to print something using this code, how should I proceed?
16th Mar 2021, 1:08 PM
ANSHU MISHRA
ANSHU MISHRA - avatar