Q:How to transmit ARGs parameters in Java (eclipse) without cmd
A:Run-run in the eclipse menu bar
Ations, where there is a (x) = arguments. Click this option. You fill in a few parameters in the blank column under program arguments. Separate multiple parameters with spaces!
Q: How to submit input in the command line
A: Ctrl + d
Q: What kind of arguments are used in Java to receive ARGs metric data?
A: For example, int K = integer. parseint (ARGs [0]);
BelowAuto: http://www.oschina.net/question/28_46291
Although we already have an advanced ide like Eclipse, sometimes we also need to run some independent programs using the Windows Command Line during development. It is very troublesome to switch between the two programs. Therefore, eclipse provides such a tool that allows us to use Windows command lines in eclipse.
Step 1:Set a new external Configuration Tool
In eclipse, select "Run-> external tools deployments"
Step 2:Click
"New Launch configuration"
Step 3:New
Configuration Interface
Step 4:Provides command line configuration details
Name: The name you configured.
Location: The file location of cmd.exe
Working directory: the default working path after the command line is opened.
Step 5:Select "allocate"
Console check box
This option is to use the eclipse workbench as a command line to obtain the input and output.
Step 6:Click "run"
You will open a C: Command Line for the working path
Step 7;Several simple example commands
That's easy!