public static double array method
<p>In using a top-down organizational structure in ava, I defined a static method to be used later in the main method. It is a double array method, which makes use of arguments from other arrays. However, I'm given an error every time I try to compile. I've tried various solutions, including using a for statement, but cannot seem to fix it.</p>

<pre><code>public static double[] calcGravity(double[] radius, double[] mass) {
    return ((6.67 * Math.pow(10, -17) * mass) / Math.pow(radius, 2)); 
}
</code></pre>

<p>What am I doing wrong?</p>