|
Re: Java I/O and Argument Passing Inside Eclipse [message #1778998 is a reply to message #1778988] |
Thu, 28 December 2017 05:52 |
Ed Merks Messages: 33145 Registered: July 2009 |
Senior Member |
|
|
When you run an Java application, the Console view will be connected to your application. Output will be written to this view and also System.in will also be connected to that view so if you type a line of text and hit enter, that line will be read from System.in. Whenever you run, a Launch Configuration will be created or reused if one already exists. Via the Run or Debug toolbar button or the Run menu bar item you can use Debug Configurations... or Run Configurations... to manage those. Each Launch Configuration has an Arguments tab with Program Arguments (and VM Arguments) where you can enter you arguments that will be passed to main(String[]). You can have multiple Launch Configurations (each with a different name) with different arguments to easily manage this.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.09703 seconds