I have to tell if someone passed a drivers test or not. for some reason in the class theisn't adding when it should so I am always having a return of false and I cant figure out why. ThankscorrectCount
public class DriverExam { static String[] correctAnswers={"b","d","a","a","c","a","b","a","c","d","b","c","d","a","d","c","c","b","d","a"}; static String[] userAnswers=new String[20]; //constructer public DriverExam(String[] user) { userAnswers=user; } //method to see if you passed public static boolean passed() { boolean pass=false; int correctCount=0; int incorrectCount=0; for(int i=0;i<userAnswers.length;i++) { if(userAnswers[i]==correctAnswers[i]) { correctCount++; } else { incorrectCount++; } } if(correctCount>14) {pass=true;} return pass; } }