I'm using the Scanner class to take some input from the user through the console. Whenever the user inputs something in the screen and presses enter the input stays on screen for example:
This is the prompt
// User writes command and presses enter
- command
- output of command goes here
//Use writes command3
- command
- output of command goes here
- command3
- output of command3 goes here
Is there anyway I can make the command entered not stay in the console after pressing enter?
For example:
//User writes command
- output of command goes here
以上就是How to make Java console input dissapear after pressing enter的详细内容,更多请关注web前端其它相关文章!