Reassignment of val in Scala
Scala is a general-purpose, high-level, multi-paradigm programming language. It is a pure object-oriented programming language that also provides support to the functional programming approach. In Scala, there are two ways of declaring variables. Using varUsing ValUsing var! as in VariableIt allows