Can any one help me to resolve my below coding problem?
Start.java:22: error: cannot find symbol
result.DriverExam(ans);
^
symbol: method DriverExam(char)
location: variable result of type DriverExam[]
import java.util.Scanner;
import java.io.*;
public class Start
{//start of class
public static void main(String[] args)
{//start of main
Scanner keyboard = new Scanner(System.in);
DriverExam[] result = new DriverExam[20];
char ans;
String input;
System.out.print("================================ ===============================");
for (int q = 1; q < result.length; q++)
{
System.out.print("\nPlease answer from the options given (A, B, C, or D).");
input = keyboard.nextLine();
ans = input.charAt(0);
result.DriverExam(ans);
}
System.out.print("The result of your exam :" + result.passed());
System.out.print("The total no. of correct answers are: " + result.totalCorrect());
System.out.print("The total no. of incorrect answers are: " + result.totalIncorrect());
System.out.print("The total no. of missed answers are: " + result.questionMissed());
}//end of main
}//end of class
public class DriverExam
{//start of class
private final int PASSING = 15;
private char[] correct = {'X', 'B', 'D', 'A', 'A', 'C',
'A', 'B', 'A', 'C', 'D',
'B', 'C', 'D', 'A', 'D',
'C', 'C', 'B', 'D', 'A'};
private char[] student;
private int[] missed;
private int numCorrect = 0;
private int numIncorrect = 0;
public DriverExam(char[] s)
{//Start of constructor
student = new char[correct.length];
for (int q = 1; q < student.length; q++)
{//Start of for loop
student[q] = s[q];
}//End of for loop
gradeExam();
}//End of constructor
private void gradeExam()
{//Start of method
for (int q = 1; q < correct.length; q++)
{//Start of for loop
if (student[q] == correct[q])
numCorrect = numCorrect +1;
else
numIncorrect = numIncorrect +1;
}//End of for loop
if (numIncorrect > 0)
makeMissedArray();
}//End of method
private void makeMissedArray()
{//Start of method
missed = new int[numIncorrect];
int m = 0;
for (int q = 1; q < correct.length; q++)
{//Start of for loop
if (student[q] != correct[q])
{
missed[m] = q;
m = m + 1;
}
}//End of for loop
}//End of method
public boolean passed()
{
return (numCorrect >= PASSING);
}
public int totalCorrect()
{
return numCorrect;
}
public int totalIncorrect()
{
return numIncorrect;
}
public int[] questionsMissed()
{//Start of method
if(numIncorrect == 0)
return null;
int[] temp = new int[numIncorrect];
for (int n = 0; n < missed.length; n++)
temp[n] = missed[n];
return temp;
}//End of method
}//end of class