title: Read input from windows cmd
body: <p>How can I get an input from another java program? I have one class that generates a random graph and writes it in the windows cmd console with <code>System.out.println();</code>. What I want is this other class to read this output and use it to do some calculations. Both classes are working fine - all I need to know is how to get this output from the first class.</p>
  
  <p>EDIT:
  I want this <a href="http://pastebin.com/GnsUZVht" rel="nofollow">http://pastebin.com/GnsUZVht</a> to read the output that this <a href="http://pastebin.com/cgXMCbgb" rel="nofollow">http://pastebin.com/cgXMCbgb</a> do to put it back in a matrix. </p>