I got stuck in the last task of Game Logic Pt.II. Please help me

For the last task, I don’t quite understand what does the task want me to do. Do I only need to write the “mainactivity.onAnswerSubmission();” line under the “Play the game” comment in Main.java file? Or What else do I need to do? Thank you!

This is my Question.java file:

public class Question {
    int imageId;
    String questionText;
    String answer0;
    String answer1;
    String answer2;
    String answer3;
    int correctAnswer;
    int playerAnswer;

    public Question(int imageIdentifier,
      String questionString,
      String answerZero,
      String answerOne,
      String answerTwo,
      String answerThree,
      int correctAnswerIndex) {
        imageId = imageIdentifier;
        questionText = questionString;
        answer0 = answerZero;
        answer1 = answerOne;
        answer2 = answerTwo;
        answer3 = answerThree;
        correctAnswer = correctAnswerIndex;
        playerAnswer = 1;
    }

    boolean isCorrect() {
      return correctAnswer == playerAnswer;
    }

    public static void main(String[] args) {
      
    }
}

This is my MainActivity.java file:

import java.util.ArrayList;

public class MainActivity {

    // TODO #1: add integer member variables here
  int currentQuestionIndex;
  int totalCorrect;
  int totalQuestions;
    // TODO #2: add ArrayList member variable here
  ArrayList<Question> questions = new ArrayList<Question>();
    // TODO #3 add startNewGame() here    
  public void startNewGame() {
    Question question1 = new Question(921238, "How tall is the Eiffel tower?", "1024 ft", "1063 ft", "1124 ft", "1163 ft", 1);
    Question question2 = new Question(283912, "How much is the net worth of Elon Musk?", "USD$197 billion", "USD$201 billion", "USD$123 billion", "USD$312 billion", 0);
    Question question3 = new Question(991226, "When did the Battle of Hong Kong end?", "12 December 1939", "13 January 1941", "25 December 1941", "7 March 1940", 2);
    Question question4 = new Question(192032, "Which year did the movie Fight Club publish in?", "1996", "1999", "1997", "1990", 1);
    Question question5 = new Question(283019, "What is the official name of the first ever Mac computer?", "Macbook 128K", "Apple Macbook", "Apple Macbook 128K", "Macintosh 128K", 3);
    questions = new ArrayList<Question>();
    questions.add(question1); 
    questions.add(question2); 
    questions.add(question3); 
    questions.add(question4); 
    questions.add(question5); 
    totalCorrect = 0;
    totalQuestions = questions.size();
    Question firstQuestion = chooseNewQuestion();
    // displayQuestion(firstQuestion);
    if (questions.size() == 0) {
      System.out.println(getGameOverMessage(totalCorrect, totalQuestions));
      startNewGame();
    } else {
      chooseNewQuestion();
      // TODO: uncomment after implementing displayQuestion()
      // displayQuestion(getCurrentQuestion());
    }
  }
    // TODO #4 add chooseNewQuestion() here
  public Question chooseNewQuestion() {
    int chosenQuestionIndex = generateRandomNumber(4);
    currentQuestionIndex = chosenQuestionIndex;
    return getCurrentQuestion();
  }
    // TODO #5 add getCurrentQuestion() here
  public Question getCurrentQuestion() {
    return questions.get(currentQuestionIndex);
  }
    // TODO #6 add onAnswerSubmission() here
  public void onAnswerSubmission() {
    if (getCurrentQuestion().isCorrect()) {
      totalCorrect += 1;
    }
    questions.remove(getCurrentQuestion());
    // displayQuestionsRemaining(questions.size());
  }

    int generateRandomNumber(int max) {
      double randomNumber = Math.random();
      double result = max * randomNumber;
      return (int) result;
    }

    String getGameOverMessage(int totalCorrect, int totalQuestions) {
        if (totalCorrect == totalQuestions) {
            return "You got all " + totalQuestions + " right! You won!";
        } else {
            return "You got " + totalCorrect + " right out of " + totalQuestions + ". Better luck next time!";
        }
    }

    public static void main(String[] args) {
      
    }
}

And this is my Main.java file:

public class Main {
    public static void main(String[] args) {
        MainActivity mainActivity = new MainActivity();
        mainActivity.startNewGame();
        System.out.println("Questions remaining: " + mainActivity.totalQuestions);
        Question currentQuestion = mainActivity.getCurrentQuestion();
        printQuestion(currentQuestion);
        // Play the game!
        mainActivity.onAnswerSubmission();
    }

    static void printQuestion(Question question) {
        System.out.println("Question: " + question.questionText);
        System.out.println("Option 1: " + question.answer0);
        System.out.println("Option 2: " + question.answer1);
        System.out.println("Option 3: " + question.answer2);
        System.out.println("Option 4: " + question.answer3);
    }
}

Please help me with this task. Thank you!