成绩可重复,从高到低输出,不会重复输出

public class GradeExam 
{
    public static void main(String[] args) 
    {
        char[][] answers = {
            {'A','B','A','C','C','D','E','E','A','D'},
            {'D','B','A','B','C','A','E','E','A','D'},
            {'E','D','D','A','C','B','E','E','A','D'},
            {'C','B','A','E','D','C','E','E','A','D'},
            {'A','B','D','C','C','D','E','E','A','D'},
            {'B','B','E','C','C','D','E','E','A','D'},
            {'B','B','A','C','C','D','E','E','A','D'},
            {'E','B','E','C','C','D','E','E','A','D'},
            };//学生选择题答案
        char[] keys = {'D','B','D','C','C','D','A','E','A','D'};//正确答案
        int[] a=new int [8];
        for(int i=0;i=0;i--)
        {
            if(i!=0)
            {
            if(a[i]==a[i-1])
                continue;
            }//遇到重复成绩直接跳过本循环,以免重复输出
            for(j=0;j