Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts
Friday, September 20, 2013
Labels:
eclipse
Monday, March 18, 2013
Labels:
eclipse,
GUI,
java,
Java Developer Tools,
WindowBuilder
Wednesday, March 14, 2012
It's simple,
Create a test programe on eclipse IDE.
Goto: Run->Run Configurations

in that window select Arguments tab and give the arguments(only the arguments)
Notice that there is at least one space between every two arguments.
Then just click Apply

execute the code.
output would be
Create a test programe on eclipse IDE.
public class NameArguments {
public static void main(String[] args) {
System.out.println("First Name " + args[0]);
System.out.println("Last Name " + args[1]);
}
}
Goto: Run->Run Configurations
in that window select Arguments tab and give the arguments(only the arguments)
Notice that there is at least one space between every two arguments.
Then just click Apply
execute the code.
output would be
First Name Pradeep
Last Name Rathnayaka