I would like to
java.util.Locale.getAvailableLocales.asScala // doesn't compile
You don't have to import any implicit conversion for the
map to be available over Java arrays. Try running the following in Scala shell:
The implicit conversion that allows the usage functions like
filter over Java arrays comes with the
Predef, which is imported implicitly.
As you mentioned in your own answer you can also explicitly convert an Array to another collection (which is possible thanks to the implicit conversion I mentioned previously).