Scala type mismatch problem (expected Map, found scala.collection.mutable.HashMap)
问题 I am still a newbie Scala programmer, so sorry if this question may look naive, but I searched for a while and found no solutions. I am using Scala 2.8, and I have a class PXGivenZ defined as: class PXGivenZ (val x:Int, val z:Seq[Int], val values: Map[Seq[Int], Map[Int, Double]] ){...} When I try to instantiate an element of that class into another block of program like this: // x is an Int // z is a LinkedList of Int ... var zMap = new HashMap[Seq[Int], HashMap[Int, Double]] ... val pxgivenz