(gentle music)
-: Okay, now let's write our first code.
Hello World in IntelliJ IDEA.
and try the community version.
So I'm going to close the Ultimate version.
It's already closed and now how do we do it?
So very simple.
We open the IntelliJ Idea Community version.
You will see this prompt and by default,
if it is new for you you will not see any of the project
which you can see here.
And now if I click on new project, so basically
whenever you build projects or whenever you write any code,
so there was a days where you used to create
a normal notepad file or a TXT file
where you write your Java code
and then you compile that with the help of the command line.
So we have to create our project,
okay, so what is a project?
A folder where you have different project structure,
different configuration files and all this stuff.
Now since we are writing the first code,
let's not look at the project structure.
So click on the new project.
It will ask you for certain things.
So this, this is the prompt you will get.
Make sure that you are on this new project tab.
And here you can name any project.
So I will say DemoFirst
and you can save this somewhere in your location.
I will just keep this on desktop, path selected.
And now you can choose a language for this project.
So we are running Java, so you can stick to Java,
build system by default, select IntelliJ
will understand what is Maven later.
And then you select your JDK version.
Now depend upon which one you have downloaded.
So if you have 17, 21 you can choose any of it.
I'm going for 21 here and click on Create.
It will create a project for you, a very simple project
and by default you will have this one code.
And by default it will show you hello world.
We just want to see if this works.
So I will just simply say save.
There are some issues in the code, which I can see here,
or simply click on Run.
Okay, no problem.
I don't know what the issue is.
Might be some issue with the ID.
And you can see we we got the output as hello world.
Now at this point, don't stress much on this things.
It is simple, hello world code.
Now in the upcoming videos, whenever you see any topic,
it is by default we are using VS Code there
for the code Java.
And if you want to try and IntelliJ Idea,
just continue with this ID and type the same code.
You will have everything here and with the same output,
of course the output will not change based on the IDs.
So yeah, that's about how do we write our first code
in the IntelliJ.
So you have an option, you can continue with VS Code
or IntelliJ or any of your favorite ID.
Bye.