How to do a grading system with pre-given list of integers in java?
<p>I would like to convert a list of marks given to grade.</p>

<pre><code>public static void main (String[] arg){

   int[] m= Student.getMarks();

}

public static char grade (int[] m){
  int[] lowestg = {80,70};
  char[] g = new char[m.length];
  for (int x=0; x&lt;m.length; x++){
    n=0;        
    for (int y=0; y&lt;m.length; y++){
       if (m[x]&gt;=lowestg[0]){
        g[y] = 'H';
       }
       else if (m[x]&gt;=lowestg[1]){
        g[y] = 'D';
       }
       else 
        g[y] = 'F';
    }
  return g;
  }
 }
</code></pre>

<p>I would also like to put that into an array of characters.</p>

<p>When I tried to build it, it is shwoing </p>

<blockquote>
  <p>error: incompatible types</p>
</blockquote>
