-So now that we have run our program, let's see what - -2
-happens exactly when you run a program within Eclipse. And to - -3
-do that I'm going to use the menu over here which is - -4
-the Run menu and I'm going to select Run Configurations, and this - -5
-brings up a window where you can change or run configurations. - -6
-Well first of all, you can see that here on the - -7
-left under Java application. Eclipse automatically created a Hello World run - -8
-configuration for our program. And this is where you can configure - -9
-the different parameters for your execution. For example, - -10
-you can select the main class. So here - -11
-it's, obviously, edu.gatech.HelloWorld. You can define different program - -12
-arguments. We don't have any for now. You can - -13
-also pass arguments to the virtual machine. You - -14
-can define which Java runtime environment you want to - -15
-use, Classpath and other environmental options. So let's - -16
-now try to pass some arguments to our program. - -17
-So for example here, I am just going to write George as - -18
-a possible parameter. I say Apply so that modify the configuration and - -19
-if i run the program of course, the output is not changing - -20
-because my program does not use the argument. But, let's see if - -21
-we do use the argument, what happens. So I'm going to slightly - -22
-modify the final program so that now, instead of printing hello - -23
-world, it will print hello followed by the first argument that I - -24
-will pass to the program. And if I do that, and I - -25
-go and I run the program, what I get is exactly what I - -26
-was expecting, which is Hello George. So this is the way in which you - -27
-can pass arguments to your execution, which - -28
-is something that might come in handy - -29
-for some other projects. When you need to run some code with an argument. -- cgit 1.4.1