title: Multiplication of corresponding array elements in Java
body: <p>Is there a Java function that can take as parameters two Arrays and multiply every element in the 1st array with the equivalent in the second array? </p>
  
  <p>If there is one. How is that function more efficient in comparison to a <code>for loop</code>?</p>
  
  <p><code>Array 1</code></p>
  
  <pre><code>1, 2, 3, 4
  </code></pre>
  
  <p><code>Array 2</code></p>
  
  <pre><code>4, 3, 2, 1
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>4, 6, 6, 4
  </code></pre>