from Java API I get
java.util.LinkedHashMap[String,java.util.ArrayList[String]]
which I then need to pass as a parameter to a scala progra
Just import scala.collection.JavaConversions
and you should be set :)
It performs conversions from Scala collections to Java collections and vice-versa.
If it doesn't work smoothly, try:
val m: Map[String,List[String]] = javaMap
You might also need to convert each one of the lists inside the map:
m.map {
l => val sl: List[String] = l
sl
}