Skip to content

Commit

Permalink
Add Scala HelloWorld application. (#100)
Browse files Browse the repository at this point in the history
Relates to #34.

Signed-off-by: Christopher Métrailler <[email protected]>
  • Loading branch information
metc authored and DaylightFox committed Oct 22, 2018
1 parent 81221a2 commit 61e0188
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Scala/HelloWorld.scala
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!")
}
}
12 changes: 12 additions & 0 deletions Scala/Readme.md
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
```

0 comments on commit 61e0188

Please sign in to comment.