Created new Array with specified length and assigned them with values.