Questions and Answers
What is the purpose of the 'Scanner' class in the given Java code?
To read user input from the standard input stream
What does the 'switch' statement in the given Java code do?
It allows the program to execute different blocks of code based on the value of a variable
What is the purpose of the 'equalsIgnoreCase' method in the given Java code?
To compare two strings while ignoring their case