How to make Java console input dissapear after pressing enter

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏