Write a method addToFront(x, A) that takes an integer x and an array of integers as an argument, and that returns a newly created array holding x at index 0 and holding all members of array A after that, in the same order. For example, if x = 25 and A has size 4 and is as follows
  A[0] = 14
  A[1] = 71
  A[2] = 5
  A[3] = 21
then addToFront returns a new array (let's call it B just to give it a name) containing
  B[0] = 25
  B[1] = 14
  B[2] = 71
  B[3] = 5
  B[4] = 21

 

    [Language: Java  Kind: function definition]