Question: Main.java E Console Shell //int cLength= correct.length; String thisAns; > javac -classpath .:/run_dir/junit-4.12.jar:target/dependency/* -d . Main.java Main.java:37: error: array required, but ArrayList found if(correct[i] ==

 Main.java E Console Shell //int cLength= correct.length; String thisAns; > javac

Main.java E Console Shell //int cLength= correct.length; String thisAns; > javac -classpath .:/run_dir/junit-4.12.jar:target/dependency/* -d . Main.java Main.java:37: error: array required, but ArrayList found if(correct[i] == answers[j]) A ArrayList answers = new ArrayList(); for(int problems = 0; problems correct.length; problems++) { System.out.print("What was your answer for problem "+(problems+1)); thisAns = input.nextLine(); Main.java:39: error: cannot find symbol tally++; A symbol: variable tally Location: class Main Main.java:45: error: incompatible types: unexpected return value return total; A 3 errors compiler exit status 1 answers.add(thisAns); 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 } int i=0; int j=0; int cTally=0; int total =0; //int aLength = answers.length; while(i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!