Fork me on GitHub

Graceless Failures

Tips, tricks, missteps, and minor revelations on the path to Scala wisdom.

Renaming Imports

One useful thing if you’re spending a lot of time interfacing with Java from Scala is renaming imports.

I use Scala ArrayLists and java.util.ArrayList a lot. Here’s an easy way to not get confused:

import java.util.{ArrayList => JArrayList}