title: creating a method to return the average of values of an array
body: <p>I'm attempting to create a static method within a class that is passed an array of array objects and returns the average value of the objects in the array.</p>
  
  <pre><code>public static double calcAverage() {
    int sum = 0;
    for (int i=0; i &lt; people.length; i++)
              sum = sum + people[i];
    double calcAverage() = sum / people.length
       System.out.println(people.calcAverage());
  }
  </code></pre>
  
  <p>The code is getting compilation errors but am I heading in the right direction?</p>