title: Using array of char from another method to count occurances - char can't be converted to char[] -
body: <p>Please be kind as I am very new to Java (and programming in general).</p>
  <p>I am trying to write a method that will count the occurrences of grades, and I think I have it figured out, but I am losing my mind trying to test it (i TestingPage) I get the error 'char can't be converted to char[]'
  The method with the grades (getGrades), converted int to char based on the level of grades (marks).</p>
  <p>Im sure the solution is simple, but I just can't seem to figure out what I am doing wrong, or what I need to include or take out to test it.</p>
  <pre><code>public class ProcessMarks {
      Marks testMarks = new Marks(); 
      int[] marks = testMarks.getMarks();
  
      //Method to create a new array of grades based on marks array
      public static char getGrades(int marks[]){
          int a = 90;
          int b = 75;
          int c = 60;
          int d = 50;
          int e = 45;
          char[] grades = new char [marks.length];
          char gradedMarks = grades[0]
          //else is F for fail! 
          for (int i = 0; i &lt; marks.length; i++){
              if (marks[i] &gt;= a)
                  grades[i] = 'A';
              else if (marks[i] &gt;= b &amp;&amp; marks[i] &lt; a)
                  grades[i] = 'B';
              else if (marks[i] &gt;= c &amp;&amp; marks[i] &lt; b)
                  grades[i] = 'C';
              else if (marks[i] &gt;= d &amp;&amp; marks[i] &lt; c)
                  grades[i] = 'D';
              else if (marks[i] &gt;= e &amp;&amp; marks[i] &lt; d)
                  grades[i] = 'B';
              else 
                  grades[i] = 'F';
          }
          for (int n = 0; n &lt; grades.length; n++) {
              System.out.print(grades[n] + &quot; &quot;);
              if (n % 10 == 9)
                  System.out.println();
          }
  
              return gradedMarks;
                
              }
      
      //Method to establish total occurrences of each grade
      public static char gradesDistn (char getGrades[]){
        char[] grades = getGrades;
        char gradesDistn = 0;
  
           int a = 0;
           int b = 0;
           int c = 0;
           int d = 0;
           int e = 0;
           int f = 0;
  
           for (int i = 0; i &lt; grades.length; i++){
               if (grades[i] == 'A')
                   a++;
               else if (grades[i] == 'B')
                   b++;
               else if (grades[i] == 'C')
                   c++;
               else if (grades[i] == 'C')
                   c++;
               else if (grades[i] == 'D')
                   d++;
               else if (grades[i] == 'E')
                   e++;
               else
                   f++;
           }
           System.out.println(&quot;A: &quot; + a);
           System.out.println(&quot;B: &quot; + b);
           System.out.println(&quot;C: &quot; + c);
           System.out.println(&quot;D: &quot; + d);
           System.out.println(&quot;E: &quot; + e);
           System.out.println(&quot;F: &quot; + f);
           
           return gradesDistn;
           }
       }
  
  
  public class TestingPage {
      public static void main(String[] args) {
          int[] marks = Marks.getMarks(); 
          char[] grade = ProcessMarks.getGrades(marks); // char cannot be converted to char[] 
          
        
          int median = ProcessMarks.getMedian(marks);
          int min = ProcessMarks.getMin(marks);
          int range = ProcessMarks.getRange(marks);
          int mean = ProcessMarks.getMean(marks);
          int mode = ProcessMarks.getMode(marks);
          char grades = ProcessMarks.getGrades(marks);
          int distribution = ProcessMarks.gradesDistn(grade);
          
          System.out.println(range);
          
         
             }
       
  }
  </code></pre>