I'm developing a Java program in IntelliJ IDEA 13.1. To run the program at command-line
$ echo 1 a b | java MyProgram 3
The 3
is an argument, and when MyProgram
started, it expects 1 a b
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?