Need Help Code Getting Error Message Sure Fix Import Javautilscanner Public Class Drivete Q37259790

I need help with the code below. I am getting an error message Iam not sure how to fix

import java.util.Scanner; public class DriveTestExams { publicstatic vice main (String[] args);{ Scanner KB = new Scanner(System.in); int IncorrectAns; String[]CA = {“A”, “D”, “B”, “B”,”C”, “B”,”A”, “B”,”C”, “D”,”A”, “C”,”D”, “B”,”D”, “C”,”C”, “A”,”D”,”A”}; String[]SA = new String [20]; Boolean RightChoice = true; intIncorrectAns = 0; for(int i=o; i <=20; i++){ while(rightchoices); System.out.prinlin (“please enter answer for (i+1)questions: “); String SA = KB.nextLine(); if (ans == (“A”)||ans ==(“B”)|| ans ==(“C”)|| ans == (“D”)); //Incorrect answers if (SA [i]== answers [i]); incorrect++; System.out.println (“Questionnumbers: ” +

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.