Modify the checkAnswer method of the Question class of How To 10.1 so that it does not take into account different spaces or upper/lowercase characters. For example, the response " JAMES gosling" should match an answer of "James Gosling".

Complete the following file:

Use the following file:

import java.util.Scanner;

public class QuestionDemo
   public static void main(String[] args)
      Question[] quiz = new Question[2];

      quiz[0] = new Question("Who was the inventor of Java?");
      quiz[0].setAnswer("James Gosling");      

      quiz[1] = new Question("What computer device did Douglas Engelbart invent?");

      Scanner in = new Scanner(;
      for (Question q : quiz)
         System.out.println("Your answer: ");
         String response = in.nextLine();