title: What am i doing wrong with arrays in methods?
body: <p>I am unsure of what i have done wrong. I am using Java, and my console is saying that it cant find the symbol getBattingAverage.batters(i). batters is an array of 15 names, at bats, and hits ex: Anthony Rizzo 54 16.</p>
  
  <pre><code>public double getBattingAverage()
     {
     if(atBats &gt; 0)
     return (double) hits / (double) atBats;
    else
     return 0.0; 
     }
  
  public double getHighestBattingAverage()
     {
        for( i = 0; i &lt; batters.length; i++)
           {
              j = getBattingAverage.batters(i);
              if ( maxERA &lt; j)
                 maxERA = j;
  
     }
  </code></pre>