I know that there are two extremely useful objects in scala.collection package, which will help us to achieve this goal:
- JavaConverters (If I want to be explicit and tell exactly what I want to convert)
- JavaConversions (If I don’t want co control conversions and let compiler make implicit work for me)
but I have some troubles to apply them in my case because my data structure is a little bit more complex than the other ones that I saw in many examples.
I'm in scala code and I want that my scala function return a Java collection. So I wanto to convert Scala Seq[(Int, Seq[String])] to Java collection List[(int, List[String])].
How can I do this?