getting started with bluetooth(Getting Started with Scala | The Scala Programming Language)
导读:Script it ! The above Scala program may also be run as a shell script respectively as a batch command (see the examples in the man pages of the scala command ...
Script it !
The above Scala program may also be run as a shell script respectively as a batch command (see the examples in the man pages of the scala command).
The bash shell script script.sh containing the following Scala code (and shell preamble)
#!/bin/sh exec scala "$0" "$@" !# object HelloWorld { def main(args: Array[String]) { println("Hello, world! " + args.toList) } } HelloWorld.main(args)创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!