Program to convert Java Set of Shorts to a Traversable in Scala
A java Set of Shorts can be converted to a Traversable collection in Scala by utilizing toTraversable method of Java in Scala. Here, you need to import Scalaâs JavaConversions object in order to make this conversions work. Now, lets see some examples and then discuss how it works in details. Example