title: Java Error, required: char[] found char
body: <p>I have made a character array in Java,</p>
  
  <p><code>char[] letterGrade = { 'A','B','C','D','F'};</code></p>
  
  <p>and am trying to reference the elements like this,</p>
  
  <pre><code>letterGrade[0]
  </code></pre>
  
  <p>I am getting an error that says incompatible types</p>
  
  <p>required: 
  char[]</p>
  
  <p>found: char </p>
  
  <p>I've done this elsewhere in the code with an array of doubles and it worked fine.  Why doesn't it work with a character array?</p>
  
  <p>Thanks!</p>
  
  <p><strong>update from your comment</strong></p>
  
  <pre><code>public static void method()
  {
      double totalEarnedPoints = 1;
      double totalPossiblePoints = 1;
  
      double gradePer = 0.0;
      gradePer = (totalEarnedPoints / totalPossiblePoints);
      char[] letterGrade = { 'A', 'B', 'C', 'D','F'};
      if (gradePer &gt;= gradeScale[0])
      {
          letterGrade = char letterGrade(0);
      }
      else if (calcPercent &gt;= gradeCutoffs[1] &amp;&amp; calcPercent &lt; gradeCutoffs[0])
      {
          letterGrade= char letterGrade(1);
      }
  }
  </code></pre>