Says there is something wrong with my code? Tutorial says this is right.

Output:
What is your name?
Exception in thread “main” java.util.NoSuchElementException: No line found
at java.base/java.util.Scanner.nextLine(Scanner.java:1554)
at Game.main(Game.java:6)
My best guess is that you’re using a Codecademy workspace to do this, and you don’t have an interactive terminal. Likely the console window only shows output, and doesn’t accept input. You might want to try using your own computer or another online environment with an interactive terminal.
There must be a way to use scanners in the workspaces, right?
There is not, as far as I know. You need an actual terminal not just an output console. You can use a free online IDE like replit.com if you don’t want to use your own computer.
I think I saw one to use the scanners on github - idvisahub. You can try searching there.