How to use java.lang.Process class to Provide inputs to another process
<p>Just assume there is a program which takes inputs from the standard input.</p>

<p>for example :</p>

<pre><code>cin&gt;&gt;id;
</code></pre>

<p>What I want to figure-out is execute the process and give some input to it's standard input. Getting the output of the process is not an issue for me. it works properly. Question is how to feed inputs for such processes using java.lang.Process class.</p>

<p>If there are any other 3rd party libraries like apache commons please mention them also.
Thanks in advance! </p>
