Scala Access Modifier Access modifier is used to define accessibility of data and our code to the outside world. You can apply…
conditional expressions
-
-
Scala Functions Scala supports functional programming approach. It provides rich set of built-in functions and allows you to create user defined functions…
-
Scala Queue Queue implements a data structure that allows inserting and retrieving elements in a first-in-first-out (FIFO) manner. In scala, Queue is…
-
Scala Tuple Example: Function Return Multiple Values You can return multiple values by using tuple. Function does not return multiple values but…
-
Scala Array Array is a collection of mutable values. It is an index based data structure which starts from 0 index to…
-
Scala HashMap HashMap is used to store element. It use hash code to store elements and return a map. HashMap Example In…
-
Scala Seq Seq is a trait which represents indexed sequences that are guaranteed immutable. You can access elements by using their indexes.…
-
Scala Tuples A tuple is a collection of elements in ordered form. If there is no element present, it is called empty…
-
Scala BitSet Bitsets are sets of non-negative integers which are represented as variable-size arrays of bits packed into 64-bit words. The memory…
-
Scala HashSet HashSet is a sealed class. It extends AbstractSet and immutable Set trait. It uses hash code to store elements. It…