• Post Reply Bookmark Topic Watch Topic
  • New Topic

enter key in command prompt  RSS feed

 
puja dayal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to detect an enter key in command prompt to code in java without using swings or awt??
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest is to use class java.util.Scanner.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!