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
You can try using
val rmap = Foo.baz(parameter.asScala.toMap.mapValues(v => v.asScala.toList))
Import below in your code -
import scala.collection.JavaConversions._ import scala.collection.JavaConverters._