Skip to content
Advertisement

Jetbrains Academy Java: Program ran out of input. You tried to read more, than expected

The Jetbrains Academy Java “Project: Cinema Room Manager” at stage 4/5 throws an unclear error Program ran out of input. You tried to read more, than expected..... The Java stack trace is:

JavaScript

Source code

SeatPlanning.java

JavaScript

Cinema.java

JavaScript

Advertisement

Answer

You might have used System.exit(0) to quit the application which is the culprit of the problem.
Instead, use return to quit the application.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement