Hi I'm new to Java and I was wondering how you would detect if a user just hits "enter" at a prompt? I'm trying to give the user the option to terminate the input phase.
It depends on what methods you're using to get the input.
For example, Scanner's nextLine() method returns a String representing the "input that was skipped." If nothing other than Enter is pressed, then this will be an empty String ("").
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org