B
berner2
hi !
<newbie mode on priority=-10 >
I'm learning j2se and i'm trying to write a
simple console programm and I'm stuck with this :
i want the user to have 5 seconds to answer the question,
after 5 seconds system says ::bzzzzzzzzz time up :::::::
and next question starts ....
but i have a problem that I can't do anything
when system is waiting for user input
BufferedReader br ... ;
br.readLine();
if any one could give me a clue how to do this ..
I came up with an idea to do this in 2 threads
timer, and question .. something like that ...
is it the way ? ... but still it would hang on
readLine() i think ....
<newbie mode off>
Thanks !
<newbie mode on priority=-10 >
I'm learning j2se and i'm trying to write a
simple console programm and I'm stuck with this :
i want the user to have 5 seconds to answer the question,
after 5 seconds system says ::bzzzzzzzzz time up :::::::
and next question starts ....
but i have a problem that I can't do anything
when system is waiting for user input
BufferedReader br ... ;
br.readLine();
if any one could give me a clue how to do this ..
I came up with an idea to do this in 2 threads
timer, and question .. something like that ...
is it the way ? ... but still it would hang on
readLine() i think ....
<newbie mode off>
Thanks !