I have a procedural Java Program that has multiple segments that I would like to execute manually (using "Press Enter to Proceed").
Right now I've been trying with System.in.read() or Scanner but if I would make multiple enter presses, it automatically executes the next segment.
how might I regulate this behavior?