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: lab-instructions/modules/git/git.tex
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -126,11 +126,8 @@ \subsection*{Datorarbete}
126
126
\item Vi ska nu börja utvecklingen av vårt scalaprogram. Skapa en fil i katalogen, kalla den t.ex. \code{HelloWorld.scala}, med följande innehåll:
127
127
128
128
\begin{lstlisting}[language=scala]
129
-
object HelloWorld {
130
-
def main(args: Array[String]): Unit = {
131
-
println("Hello, world!")
132
-
}
133
-
}
129
+
@main def main=
130
+
println("Hello world!")
134
131
\end{lstlisting}
135
132
136
133
Prova att kompilera och testköra programmet för att verifiera att det fungerar (\emph{OBS! Nedan instruktioner kan vara fel, gör så som du lärt dig i prog-delen av kursen!}):
0 commit comments