Added explicit type argument to ArrayList parameter.
Removed unused imports.