I have a first int array as :
int[] firstarray = {53,45,20,82};
int lengthwanted = 9;
int[] fillarraywith = {15,20};
The output should by :
finalArray = {53,45,20,82,15,20,15,20,15}
So depending on the input lengthWanted I fill the firstarray with the values of the fillarraywith.