0

Below code should populate a Map but when I do a val test = userDataMap.get("test").get the value is null. Whis is this occuring ? This seems to be the correct way of populating a Map ?

var userDataMap = Map.empty[String, List[String]]
userDataMap += ("test" -> List("test"))
om-nom-nom
  • 62,329
  • 13
  • 183
  • 228
blue-sky
  • 51,962
  • 152
  • 427
  • 752

0 Answers0