I have the following Map[String, Int]
:
val m = Map[String, Int](
"[LOGIN-011]" -> 0,
"[LOGIN-103]" -> 3,
"[LOGIN-222]" -> 10,
"[ERROR-110]" -> 1,
"[ERROR-012]" -> 3,
...
)
How to find duplicated values in the Map
and print the values with List[String]
as follows:
3 -> List("[LOGIN-103]", "[ERROR-012]")