OK, in this lecture, we are going to write your first Java program, but we are not going to go into
very details.
Now, it will be a simple program which will display a text on the screen.
The goal of this lecture is to make sure that everything is installed correctly and you're going to
be able to run.
The code is shown in the upcoming lectures.
I suggest you code long now and I will make it all clear in the next video.
So JDK and A.J. are installed and we are in college now.
So here, click on New Project.
Then select Java on the left, if it is not selected up here, you can see Amazon, Croteau 15 or 11
or eight.
It depends on which version you installed.
And if you cannot see any of those, click on here and click on Add JDK.
On Windows, you need to search for Amazon creator FALDER.
And inside of it, JDK 11 or 15, and you have to select the folder and click on, OK, you can also
see the folders that you need to select for other operating systems here.
I'm going to click on console now, and there is nothing else we need to select here.
So click on Next on the next page, we have an option to create a project from a template.
We will use this feature in the upcoming lectures.
But we go the hard way now because I want to show you how to build a project from zero.
So click on next.
So here you have to type in the name of the project.
I suggest you to start every word of the project name with lowercase and separate the words with dashes.
So like here my dash first dash Java Dash project or program.
I also suggest you to put the projects into a new directory, for me it is the complete Java course,
and if you selected the folder and gave name to the project, click on Finish here.
And then click on CREATE to create the folder for the project.
OK, so you should see the created project on the left, so click on this little arrow at the top here
and you can see a DOT idea folder at the top, which was generated by intelligent than a or or source
folder where we will create our Java files.
There is also a my first Java project, IMO, which was also generated by intelligence to create our
first Java file.
Right.
Click on the source folder.
Than you and Java class now we need to name the class in the name of the class, every single word starts
with an uppercase.
So like my first Java.
It is more like a business standard than a rule, so you can start with lower case as well, but using
this naming style shows that you have some sort of advanced knowledge in how job fairs should be named.
If we are finished, we need to hit enter.
As you can see, intelligence has already generated a few lines of code for us, so public class, my
first Java app and curly braces, as you can see, the filename and the text here, the class name is
the same.
It is really important.
OK, so as I said, we are not going to go into very details now.
We are just simply typed in a code which will print out a text.
So next in the curly braces hit enter just to create some space and here start typing in public.
And as you can see, it is very handy.
You don't need to type in all the letters.
You can select the desired code from the list and hit enter.
The next one is static and enter again, then void.
And finally here, Maine, now we need to add a left parentheses and as you can see, intelligence added
the right one as well and in the parentheses string.
Left square bracket, and as you can see, the right one is added and then a space and args and after
the parentheses we need to add a left curly brace and the right one is added as well.
And I'm going to hit enter here.
OK, so this whole line is a special function that shows the Java that the execution of the code should
start from here.
OK, so one more line left from here.
So start typing in system dot out dot printer line, which means print line.
So we're going to print out a line.
And in the parentheses, double quotes and as you can see, another one is added as well.
So in the double quotes, we have to type in the text we would like to print out.
So I will type and may the force be with you.
OK, so we are finished with Colleen.
As you can see, there are green arrows on the left.
It doesn't really matter which one you choose.
Click on one of them and select the run option.
OK, the text we brought in should appear at the bottom of the screen, which shows the console outputs,
and under that you can see the process finished with an exit code zero, which means everything went
fine.
OK, so in the next lecture, I will explain all the elements presented here.
If you run into an error, please check this video again.
Maybe you missed something, but if you cannot figure out what went wrong, let me know and I will help
you to resolve it.
So that's it.
See you in the next video.