Hello, I need help with a problem, in Java code

Write a method that enlarges a given array of floats by adding the arithmetic mean between every two elements.

Example:

original array:

1,3,5

new array:

1,2,3,4,5

float[] emlargeArray(float[] array)

{

//…

return…

}

If you could help me it would be great
Thanks in advance