Guest User

Untitled

a guest
Dec 7th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. int[] arrayMultiplier(int[] arr, int copies)
  2. This method should return an array generated by writing the array arr
  3. several (copies) times in a row.
  4. For example if the array nums = [3, 5, 6]:
  5. arrayMultiplier(nums, 3)
  6. would return the array [3, 5, 6, 3, 5, 6, 3, 5, 6]
  7.  
  8. int[] multiplied = new int[nums.length * multiplier];
Add Comment
Please, Sign In to add comment