为什么我不能执行scala文件? [英] Why I can't execute scala file?

查看:49
本文介绍了为什么我不能执行scala文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Scala的新手,第一次运行Scala,我在安装Scala的时候,创建了一个名为Hello.scala的文件,内容是:

I am a newbie to Scala, it's the first time I'm running Scala, when I installed Scala, I created a file named Hello.scala, the content is:

println("HelloWorld!")

当我输入scala时,没有问题,显示的是scala REPL,但是当我输入scala Hello.scala时,提示:

when I typed scala, there was no problem, the scala REPL was shown, but when I typed scala Hello.scala, it prompted:

<console>:1: error: ';' expected but '.' is found.

我不知道是什么问题,希望有人能帮助我.

I dont know what problem is, I hope someone can help me.

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆