By: Dor Duchovni
Usually you would work with Java collections in Scala, as Java libraries are used in…