title: Method Call Expected... Why?
body: <p>In this code here, I have a text file that reads the numbers placed inside of it, and then the variance is calculated. One problem is that my last piece of code <code>return nSumVar();</code> says that I need to create a method, but my nsumvar is already initialized so what is the problem?</p>
  
  <pre><code>public double getVariance()
  {
      boolean done = false;
      int nCount = 0;
  
      for(int i=0; i &lt; maxArr; i++) {
          for(int j = 0; j &lt; maxArr; j++){
  
              // ------------------------------------------
              // If the array entry is valid then add it to total
              // If not then exit the loops and return the total
              //
              if (a[i][j] != INVALID)
              {
                  nVarianceAray[i][j] = a[i][j] - mean;
                  nVarianceAray[i][j] *= nVarianceAray[i][j];
                  nCount ++;
              }
              else
              {
                  done = true;
                  break;
              }
          }
          if (done == true) {
              break;
          }
      }
  
      int nSumVar = 0;
      done = false;
  
      for (int i=0; i&lt;maxArr; i++)
      {
          for (int j=0; i&lt;maxArr; j++)
          {
  
              {
                  nSumVar += nVarianceAray[i][j];
              }
  
              {
                  done = true;
                  break;
              }
          }
          if(done)
              break;
          nSumVar/=nCount;
      }
      return nSumVar();
  }}
  </code></pre>