The Hello World Application

Tim Short
A free video tutorial from Tim Short
Dev / Train / Recuit
4.2 instructor rating • 4 courses • 138,629 students

Learn more from the full course

Become a Junior Java Software Developer

Complete practical and conceptual Java programming course for beginners

07:45:34 of on-demand video • Updated August 2017

  • Be comfortable with writing and designing Java applications
  • Apply core concepts of object-oriented programming to a project
  • Build holistic, real-world practical applications from the ground up
  • Write common algorithms covered in computer science courses
  • Talk confidently about Java programming and object-oriented programming
  • Network with recruiters, hiring managers, and tech professionals
  • Walk into your first job interview and code review with confidence
  • Invitation to participate in internship through SDET University!
English [Auto] Read Welcome back and let's get started with writing a program in Eclipse. OK so let's go to file and new job of project. So this would create a new program and job is how we get started. It's going to open up a new job a project window and all that we need to do is put in our project name. This is a job of course when I say job training now it's a Clipsal put this directly created directory inside our workspace which we have set here if you want to specify that you can check this and change the directory. But let's keep it as the same and it finish in any class would generate for me this job a project inside the job project of expand. And there's our GRV library. These are all the Java references we'll use and are in our projects. And here's our source folder. Now inside the source folder we want to create a package so we can right click and go to new and package. And here we're going to put this package inside job training and the source package is a organized way that's going to contain a set of classes that are going to be all similar. So in our case I'm going to have a few videos here that cover the basics of programming so when I call this basics and hit finish Now here is a package called basics and I'm going to create a class. Right click and do and do class. And once again this is that Java project source folder basic's package the name of our class. Let's do the whole world so we did this in Notepad but now we'll do an eclipse. Hello world. And this is all we need to fill out. Make sure we're in the source folder package and name everything else will just leave blank for now. It will come back to that later. Now when I hit finish here we have again our class which is inside the package which inside the source folder sitting inside the project. OK. And then the clips automatically generates. For me this file this java file has a public class and the name of our file Hello world. There's a little world out Java and now this is looking like we didn't know that right. So what do we need now. We need our main method so we do public static void main string arcs. Now get that method is what we'll start to drop a program and then from here we can just say system out tot print line and then we will say Hello World. Ok save it now. And now in eclipse because it's an ID we we can run it right from this program without having to go through all the steps of compiling and so forth. We just go over to this green yellow green button with the play and click that. Now it will run. It will execute or compile all of the same time and if we look down on the console it prints out Hello world. So that's how we get started with a project in Eclipse and from here on out you can see the benefits of using Eclipse as or to eat it. It highlights certain things that formats certain keywords and so that will be really helpful to maintain our project and to update it and so forth. So that's how we get started. And that was the next tutorial.