Because packages and classes are represented as JavaScript objects, you can assign them to variables to give them shorter names. But you can also more formally import them, if you want to:
import class(java.util.HashMap); // Same as : var HashMap = java.util.HashMap
Discuss about the question