An operator in Scala is used for computing mathematical or logical operations. The standard operators include +, - , *, and / as well as %; logical operators include ==, !=, <, <=, >, >=; and relational operators include &&, ||. Learn about the value of t
- [Teacher] Basic types and operations in Scala.…Scala includes the following data types:…Byte, Int, Short, and Long, which are all integer type,…where there is no decimal points.…Byte goes from -128 to 127.…Short is next, then Integer, then Long.…Data types that include a decimal point…are Double and Float.…Then we have Character, which is a single character.…String, which is a concatenation of characters.…And Boolean, which is either true or false.…
And finally, some other types that are unique to Scala…include Unit, which is kind of like Void in Java,…Null, Nothing, Any, AnyRef, and AnyVal.…Operators in Scala are similar to what you've seen…in other programming languages, including Java and C++.…We have plus, minus, so that's addition and subtraction.…Times and divide, for multiplication and division.…And finally, the percent sign operator.…The percent sign operator represents remainder division.…
There are logical operators, which are equals-equals…to compare two values to see if they're the same.…Not equals is using the exclamation point.…
- 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.