daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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];
RAW Paste Data
Top