Heidi things at the heart and welcome to the next video of Cortland programming CDs.
Now since we have installed the software in our Mac OS and also the windows.
So let's get started with our first application of hello world in Cartland.
I am inside the Mac OS so it started the intelligent idea.
If you are using Windows then please launch the application in the same way.
So this is the opening window of the inn ID where we have a bunch of options such as create new project.
Import the existing project.
Open the project and also the version control system so that it is for us to create our new project.
And here you will find a bunch of options such as Java Java Airfix Android and so on and down the side.
You will find Cartland.
This is our destiny not Cartland here.
You will find two options JVM and Javascript.
Cartland has also support for the javascript.
You can simply write your program in Garland and simply converted into the javascript file.
So here we will deal with the GBM Cartland.
So simply selected and hit done next and now let us give the project name such as Gondolin programming
and then simply decide the project location right and now here it will simply ask you the project is
DK.
Now in case of Mac this project as DK is actually the Java adjudicates that we have installed in a previous
review and seem in place for the windows as well.
So here you have to define the part to the Java adjudicates there adjudicate has been stored in your
McElroy's order of Windows.
So if you are using Mac and in-case issuing none here then simply click on new and then you will find
the geological location under the library.
Then Java then Java virtual machine.
And finally we have the Java Angeliki version and now inside which we have content's home.
So simply select this whole and now here the pod has been set up now The same applies for the windows
as well.
Now in case of Windows you will find a job as your key inside the program files Java and so on that
we already saw in the previous videos close to all the java JDK for the windows.
And now here the Cartland runtime library.
So the English IB already has the Cartland Java runtime library so it is pre-selected so simply selected.
Again if it is not and then hey don't finish.
So the English ID will simply create a default project for you with some tape in front of you.
And now on the left hand side you will find two DAPs.
The project tab and the structure tab.
So simply select this project tab within which you will find your project.
And now at the top you will find the project view such as.
Currently we are working under the project hierarchy and now on the site we have package's problems
and so on.
So all these things really exploded in our upcoming videos.
So as of now simply select the project view that will simply display all the files in the same way as
it is stored in your laptop right now inside the Codlin programming which is either girdling project.
You will find SIAC for it.
That stands for source.
Now if you are an android or a Java programmer then you must be moving inside the source folder.
We actually store all the java files and in Archy's we withstood the Cartland files.
Now here this folder is actually blank.
So simply write leg and let us create our first garden file.
So click on new.
And now here you will find Java class and Coquelin file class.
So this is our destiny.
So let us select this quarterly and find there and give it a name as my first file.
And now here make sure it is filed.
OK so insert the source folder we have simply created my first file not guilty.
Now if you notice we have the file name as don't get the extension right.
Similarly in Java we had Dorte Java extension.
So my first find out guilty is actually the Cartland file inside which we will write our Hellawell program.
Now in case of Coralee we don't require to declare the class explicitly unlike in Java where we write
all the code within the class.
Right.
So in case of Gorlin we just need to define the function such as public static void main string arguments
in case of Java.
Similarly in girdling really find a method in its own VI such as if you end that stands for the motard
if you are in space.
Am I in.
Which is the main method similar to what we write in Gates of Java.
And then simply write a are just followed by a colon gibbered a space and then Attie of strings.
And now you must be wondering what kind of syntax is this.
Now trust me Garling programming language is quite expressive and concise.
Now in case of Java we used to write public static void mean string Agias.
Right.
And that too we had to write it within our class.
Now in case of girdling we just do find the if you in keyword there it simply means that this mean is
actually the function now inside which we have added of string.
Now in case of Codlin we actually first defined the eddy and then string.
Unlike in Java where if you write string followed by square brackets.
Now in case of Cartland we actually defined the variable name first followed by other data type.
So this is actually the Adye of strings like we have defined here.
In case of Java but I.
So the picture is now clear in our mind and now Vawter about this return type.
Now in case of Cartland in order to define the return type we simply use the galloon are the end of
the method followed by the return type.
Now in case of Cartland the void is actually represented with the help of the keyword of unit so the
unit stands for void in Cartland.
Right now if you want to return some integer value or the string value then simply define it here.
Something like this.
So as of now let's not go in that direction because we are just about to print our Hello world.
In case of Cartland and now in order to bring something here we need to again make use of the print
Metford like we use in any other programming language.
So simply use print and then simply type hello.
Void right now here at the end I want to use any semi-colon because this is girdling not Java.
So in Scotland we don't require any semi-colon to end the statement right.
And now again if you want to print the hello world along with the new line character then simply write
print.
Ellen fine.
And now to run any Gorlin program you just need to click here just beside the function.
Simply click here.
And now here you will find it in my first file.
Now you must be thinking more the heck there.
This file is coming from my first file Katie because I had a file name is my first file dog.
Get the but here you will find Emmis capital is also capital and their daughter is missing.
Now I will come to this part later.
But in short.
Let me explain you incorrectly.
Then invert the current compiler try to compile this file simply convert it into the class file like
in Java reconvert door Jever file into Dorte class.
Similarly in Cartland reconvert don't get the file into some class file whose name appears to be like
this.
Right.
So here let just now it underscored So here we get.
Hello world.
In the output console on regulations.
We just had our first program in case of Cartland up and running.
So this was all about the hello world application.
In case of Cartland that we just wrote inserted the intelligent ID.
Now here you must be thinking that I have got these line numbers.
Now these line numbers I've simply customized inside the settings so simply navigate to intelligent
ighly.
Here you will find the preferences.
Now if you are using the Windows then simply navigate to a file and then go to settings right.
Know since this is McIlroy's so I will simply click on preferences within which you will find the editor
menu simply expanded.
Now on the side you will find general.
And now here there is the appearance option within which simply check on this show line numbers simply
checkered here don't apply and then OK and here you will get all the line numbers in front of you so
let's end this review as of no.
And let's dig deep into this hello world application.
In the next video.
Thank you and have a good day.