You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _overviews/scala3-book/taste-hello-world.md
+75-6Lines changed: 75 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,45 @@ previous-page: taste-intro
7
7
next-page: taste-repl
8
8
---
9
9
10
+
> **Hint**: in the following examples try picking your preferred Scala version.
11
+
> <noscript><spanstyle="font-weight: bold;">Info</span>: JavaScript is currently disabled, code tabs will still work, but preferences will not be remembered.</noscript>
12
+
10
13
## Your First Scala Program
11
14
12
-
A Scala 3 “Hello, world!” example goes as follows.
15
+
16
+
A Scala “Hello, World!” example goes as follows.
13
17
First, put this code in a file named _hello.scala_:
14
18
19
+
20
+
<!-- Display Hello World for each Scala Version -->
0 commit comments