I have two files. One is scala and other is java.
Scala file has a function which returns scala immutable map.
Java file wants to use that map as dictionary.
This is a better way to convert a Scala immutable.Map to a Java Map in Java.
java.util.Map javaMap = scala.collection.JavaConverters .mapAsJavaMapConverter(scalaMap).asJava();