While trying to make a map in Scala, I receive the following error message: object Map is not a value
The code I\'m using is the following:
Because in scala each native scala class comes with an (optional) companion object (allowing for assignment from the companion object as in your example code) when incorporating a java class into scala code always remember to instantiate the class by invoking the constructor, ie. use keyword "new", thus creating a value.