equivalent of ungetc In java
<p>I'm writing a program in java (already wrote a version in C too). I really need to put a character back to the input-stream after I read it. This can be accomplished by <code>ungetc()</code> in C/C++, and I was wonder how can I do the same thing in Java?</p>

<p>For those of you don't know C/C++:
<code>char myc = (char)System.in.read();</code>
and I check the value of myc and now I want to put back myc in to the <code>System.in</code>! so again when I call <code>System.in</code>, I get that value. (But How can I do this?)</p>

<p>NOTE: I'm looking for exact technique. Please do not advise me to catch it or log it somewhere else and read off from there, because I know how to those kinda stuff. What I'm interested in is equivalent of <code>ungetc()</code> in Java if there's any.</p>

<p>Cheers.</p>
