Scala offers a cool feature where you can rename a class when you import it, including both Scala and Java classes. The basic syntax to rename a class on import looks like this:
import scala.collection.mutable.{Map => MMap}
and this:
import java.util.{HashMap => JavaMap}
If all you needed to know, I hope those "rename on import" syntax examples were helpful.
Why rename a class on import?
An interesting question is, "Why would I want to rename a class on import?"