How to multiply each element in a Java array

How to write an array of doubles as parameter and multiplies each element of the array by two (2), changing the contents of the array in Java.