score:1

If you want to use the Java HashMap you need to import java.util.HashMap. However, I believe in your case you want to use the Scala scala.collections.mutable.Map (which you also need to import, and change HashMap to Map).

Also, please properly indent your code in your questions, and also mark the stack traces as code. It makes it much easier for respondents to read your questions.


Related Query

More Query from same tag