New method that creates Integer array and List in a range.