0

Is it possible to override the scanner input (System.in), if the user doesn´t type anything in a defined time period like 5 sec.?

Freiheit
  • 8,408
  • 6
  • 59
  • 101
Stephan D.
  • 254
  • 2
  • 12
  • Related: https://stackoverflow.com/questions/26172324/how-to-check-scanner-hasnextsystem-in-with-a-timeout-if-nothing-is-typed Once you approach the problem as a timeout on input a few other questions turn up right away. HTH – Freiheit Sep 11 '17 at 14:13
  • https://stackoverflow.com/questions/10059068/set-timeout-for-users-input - much hacking involved – Reimeus Sep 11 '17 at 14:13
  • https://stackoverflow.com/questions/5853989/time-limit-for-an-input – Freiheit Sep 11 '17 at 14:15

0 Answers0