set timeout for user's input
<p>Is it possible to set timer for user's input? Wait 10 seconds  - do next operation and etc.
I mean for example</p>

<pre><code> //wait several seconds{
 String s = new BufferedReader(new InputStreamReader(System.in)).readLine();
 //wait server seconds}
 //next operation and etc.
</code></pre>
