fillArray, print refactored. dupInt method