title: How to run automated stdin input when running Java program in IntelliJ IDEA?
body: <p>I'm developing a Java program in IntelliJ IDEA 13.1.  To run the program at command-line</p>
  
  <pre><code>$ echo 1 a b | java MyProgram 3
  </code></pre>
  
  <p>The <code>3</code> is an argument, and when <code>MyProgram</code> started, it expects <code>1 a b</code> being input at stdin.  How do I set up a Run/Debug Configuration in IntelliJ IDEA so the above can be simulated in the IDE?</p>