-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Scala HelloWorld application. (#100)
Relates to #34. Signed-off-by: Christopher Métrailler <[email protected]>
- Loading branch information
1 parent
81221a2
commit 61e0188
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
object HelloWorld { | ||
def main(args: Array[String]): Unit = { | ||
println("Hello, world!") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Your first lines of Scala | ||
|
||
[Check this page](https://www.scala-lang.org/documentation/your-first-lines-of-scala.html) to learn how to write your first lines of code using [The Scala Programming Language](https://www.scala-lang.org/). | ||
|
||
Use the following commands to compile and execute the HelloWorld application: | ||
|
||
```bash | ||
# Compile me | ||
scalac HelloWorld.scala | ||
# Execute me | ||
scala HelloWorld | ||
``` |