Wait For Return Key Press Using Java Scanner
- by Gordon
What would be the best way to wait for a return key press from the user using the Java Scanner Class?
In a command line tool I would like the user to confirm before carrying out an action.
Please correct me if there a more standard way of doing this in a command line tool.