From 61e01882c39e0277c1040b562c4d4b8b1129202e Mon Sep 17 00:00:00 2001 From: Christopher <229670+metc@users.noreply.github.com> Date: Mon, 22 Oct 2018 19:21:37 +0200 Subject: [PATCH] Add Scala HelloWorld application. (#100) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Relates to #34. Signed-off-by: Christopher Métrailler --- Scala/HelloWorld.scala | 5 +++++ Scala/Readme.md | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Scala/HelloWorld.scala create mode 100644 Scala/Readme.md diff --git a/Scala/HelloWorld.scala b/Scala/HelloWorld.scala new file mode 100644 index 0000000..8bfbd4b --- /dev/null +++ b/Scala/HelloWorld.scala @@ -0,0 +1,5 @@ +object HelloWorld { + def main(args: Array[String]): Unit = { + println("Hello, world!") + } +} \ No newline at end of file diff --git a/Scala/Readme.md b/Scala/Readme.md new file mode 100644 index 0000000..b16c76d --- /dev/null +++ b/Scala/Readme.md @@ -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 +``` \ No newline at end of file