Removing android dependencies from Java Array and Util classes