diff options
author | Kaleb Davis <kalebdavisgithub@gmail.com> | 2015-10-06 21:22:09 -0400 |
---|---|---|
committer | Kaleb Davis <kalebdavisgithub@gmail.com> | 2015-10-06 21:22:09 -0400 |
commit | f30200b31c60f082cf4f192245a4a2c058f76fa4 (patch) | |
tree | 5447f93e98a93a78c186e41cdc6507e0dc942194 | |
parent | 6ac7368b3b8e3ce1ee6c50c9f088553e7cbc6d1a (diff) |
Add examples to show how printing works
-rw-r--r-- | scala.html.markdown | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scala.html.markdown b/scala.html.markdown index c482752d..7189be10 100644 --- a/scala.html.markdown +++ b/scala.html.markdown @@ -43,9 +43,13 @@ Scala - the scalable language // Printing, and forcing a new line on the next print println("Hello world!") println(10) +// Hello world! +// 10 // Printing, without forcing a new line on next print print("Hello world") +print(10) +// Hello world!10 // Declaring values is done using either var or val. // val declarations are immutable, whereas vars are mutable. Immutability is |