Video Chapters (table of content with clickable links into a specific part of the video)
00:00 Introduction about the video content
00:41 Prerequisites (you should have some programming skills in at least some language)
01:05 Command prompt (showing the Scala, SBT and Java versions, creates new directory, starts Visual Studio Code)
02:01 Creates a Scala 3 file with a "Hello World" program
02:45 Executes "Hello World" as a script (without compiling to a .class fil) from the command prompt
03:20 Shows that the Scala 3 program does not work with Scala 2
03:29 Modifies the program to make it work also for Scala 2
05:04 Executes the modified program with Scala 3
05:20 Executes the modified program with Scala 2
05:57 Compiles the program with "scalac" i.e. generates .class files
06:56 Executes the compiled program with "scala"
10:45 Executes the compiled program with "java" runtime and classpath -cp
11:00 Replaces the implementation with code receiving arguments from the command line and the keyboard
13:50 Compiles and executes the program which receives arguments from the command line and the keyboard
14:20 Generates a new SBT project
15:15 Copies the program source code into a file in the generated SBT project
15:40 Executes the program with SBT
Please note that you can choose to show english subtitles for the videos.
Currently (when this video was published) there are not many videos in the below playlists but please remember to subscribe to this channel if you think you are interested in future videos which will become added to the play lists.
Playlists for "Program arguments from command line and keyboard input" for different programming languages:
Playlist for the videos with english voice and english subtitles:
• Program arguments from command line and ke...
Playlist for the videos with swedish voice and swedish subtitles:
• Program argument från kommandoraden och in...
Scala playlist (english):
• Scala - Command line arguments and user ke...
Scala playlist (swedish):
• Scala - Program argument från kommandorade...
Scala
https://www.scala-lang.org
sbt
https://www.scala-sbt.org
Visual Studio Code (cross-platform editor):
https://code.visualstudio.com/download
Scala documentation relevant for the content of this video:
Scala 3 main function with @main annotation
https://docs.scala-lang.org/scala3/bo...
Scala 2 (and Scala 3) object with main method and Array[String] arguments
https://docs.scala-lang.org/scala3/bo...
'for loops'
https://docs.scala-lang.org/overviews...
Method 'println'
https://www.scala-lang.org/api/3.1.0/...
String interpolation
https://docs.scala-lang.org/overviews...
Command-Line I/O , Reading input
https://docs.scala-lang.org/overviews...
Method 'scala.io.StdIn.readLine'
https://www.scala-lang.org/api/3.1.0/...
Singleton object, Companion object, Static forwarding (instead of Java static methods)
https://docs.scala-lang.org/tour/sing...
Singleton design pattern
https://en.wikipedia.org/wiki/Singlet...
'scalac' compiler and 'scala' runner
https://docs.scala-lang.org/overviews...
SCALA_HOME environment variable (mentioned in the video at the time 7:30 - 9:30)
https://www.scala-lang.org/download/i...
sbt batch mode commands and arguments enclosed within quotes
https://www.scala-sbt.org/1.x/docs/Ru...