Enhanced get method of ArrayList