Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to set a time limit for user input in java

381 views
Skip to first unread message

Avi

unread,
Apr 11, 2008, 1:37:32 PM4/11/08
to
I m taking some input from the user in a java program. and i wanna
set
a time limit within which the user should provide this input. if no
input is provided during this time interval, the program sets the
user
input to a space (ASCII code 32). other wise the user input is set to
whatever is entered by the user and the program moves on with
execution of the rest of the program.
Any help will b appreciated.

RedGrittyBrick

unread,
Apr 11, 2008, 3:16:26 PM4/11/08
to
Avi mutiposted:

<snip>

Answered elsewhere. Please don't multipost!

http://www.blakjak.demon.co.uk/mul_crss.htm
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html


--
RGB

Roedy Green

unread,
Apr 11, 2008, 5:17:17 PM4/11/08
to
On Fri, 11 Apr 2008 10:37:32 -0700 (PDT), Avi <aviji...@gmail.com>
wrote, quoted or indirectly quoted someone who said :

> i wanna

please see http://mindprod.com/contact/peeves.html
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Roedy Green

unread,
Apr 11, 2008, 5:17:43 PM4/11/08
to
On Fri, 11 Apr 2008 10:37:32 -0700 (PDT), Avi <aviji...@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>a time limit within which the user should provide this input.

see http://mindprod.com/jgloss/timeout.html
http://mindprod.com/jgloss/timer.html

0 new messages