The Scala interpreter—often called REPL for read–eval–print loop—is a great tool for testing individual blocks of code. Learn how to find the help menu in the command prompt to explore Scala features.
- The Scala Interpreter, which is often called R-E-P-L,…or REPL,…which stands for read, evaluate, print, loop,…is a great tool for testing individual blocks of code.…Let's launch a command terminal window…and start the interpreter.…As you can see, if defaulted to opening up…in the C: drive under the folder Users\Producer.…What I want to do is navigate to where my Scala projects…are stored, and for me, that's in my documents folder…under My Scala Projects.…
I'll do that now.…First, I'll use the command cd to change the directory,…and I'll type documents.…The same command works on both the Mac and Windows machines.…Next, just to show you what's inside my documents folder,…I can type dir on a Windows machine, or ls on a Mac,…and it gives me a list of all the directories and files…that are in the documents folder.…You can see about three-quarters of the way down,…I have a folder called My Scala Projects.…That's where I want to be.…
Let me scroll down a little bit, and now,…I'm going to change my directory again.…Cd, space.…
- Installing Scala
- Integrating with IDEs
- Creating variables
- Using special functions
- Basic types and operations
- Tuples, sets, maps, arrays, and lists
- Classes, fields, and methods
- Singleton objects
Skill Level Intermediate
1. Why Scala?
2. Scala Basics
3. More Scala Basics
4. Objects with Scala
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.