-So now that we know, we saw what happens under - -2
-the hood, and as I said, don't worry about it if - -3
-you don't care about that part. Now we can go back - -4
-to Eclipse, and we can start creating a package. A package - -5
-is basically a way of organizing your classes into a - -6
-hierarchy. In this case, I'm going to specify the package name as - -7
-edu.gatech, which means that I'm creating really two packages, a package - -8
-gatech inside package edu. And I can start creating classes inside - -9
-my packages. So here, I can use the contextual menu, select - -10
-New>Class, and I'll get another wizard that will allow me to - -11
-specify the name of the class. I'm not very creative here, - -12
-so I'm just going to call it Hello World. There's many other parameters - -13
-you can set, and in particular, you can define whether you - -14
-want a main method in your class. Where having a main - -15
-method means that your class can be the main class in - -16
-your project, can be the one that is run when you run - -17
-your project. After we click the button, the Finish button, we, - -18
-we get the class. So we also get template code for the - -19
-class, as you can see here, so we go to the editor - -20
-function, you can see that there is a to do. Where you - -21
-have to put your code, and here we are simply, basically printing, - -22
-you know, the typical first program. We just going to print Hello World - -23
-in Java. And something you can note is that as we are - -24
-typing, Eclipse gives us a auto complete suggestions, which is very helpful. - -25
-For example, in case you don't remember the exact syntax, - -26
-or the method, or you don't remember the parameters of the - -27
-method. Which is, you know, often the case especially where you - -28
-work with large libraries. So having that feature can really, really - -29
-help you. So now if we want to run our code - -30
-we can either click on the button up here, or we - -31
-can right-click in the Call window and select Run As Java - -32
-Application. And if we do that, Eclipse will run our tool, - -33
-and it will create, as you can see here, a console view that basically contains - -34
-the textual output of my program. And as expected, the output is Hello World. -- cgit 1.4.1