Using Array instead of ArrayList