1 00:00:00,510 --> 00:00:05,270 Heidi things at the heart and welcome to the next video of Cortland programming CDs. 2 00:00:05,280 --> 00:00:09,840 Now since we have installed the software in our Mac OS and also the windows. 3 00:00:09,840 --> 00:00:15,130 So let's get started with our first application of hello world in Cartland. 4 00:00:15,300 --> 00:00:19,830 I am inside the Mac OS so it started the intelligent idea. 5 00:00:20,280 --> 00:00:24,590 If you are using Windows then please launch the application in the same way. 6 00:00:27,100 --> 00:00:34,310 So this is the opening window of the inn ID where we have a bunch of options such as create new project. 7 00:00:34,550 --> 00:00:36,120 Import the existing project. 8 00:00:36,280 --> 00:00:43,130 Open the project and also the version control system so that it is for us to create our new project. 9 00:00:43,260 --> 00:00:51,520 And here you will find a bunch of options such as Java Java Airfix Android and so on and down the side. 10 00:00:51,540 --> 00:00:53,090 You will find Cartland. 11 00:00:53,220 --> 00:00:56,180 This is our destiny not Cartland here. 12 00:00:56,220 --> 00:01:00,600 You will find two options JVM and Javascript. 13 00:01:00,720 --> 00:01:03,630 Cartland has also support for the javascript. 14 00:01:03,630 --> 00:01:09,210 You can simply write your program in Garland and simply converted into the javascript file. 15 00:01:09,390 --> 00:01:12,480 So here we will deal with the GBM Cartland. 16 00:01:12,740 --> 00:01:21,410 So simply selected and hit done next and now let us give the project name such as Gondolin programming 17 00:01:21,800 --> 00:01:28,420 and then simply decide the project location right and now here it will simply ask you the project is 18 00:01:28,430 --> 00:01:29,390 DK. 19 00:01:29,420 --> 00:01:36,260 Now in case of Mac this project as DK is actually the Java adjudicates that we have installed in a previous 20 00:01:36,260 --> 00:01:39,580 review and seem in place for the windows as well. 21 00:01:39,770 --> 00:01:45,620 So here you have to define the part to the Java adjudicates there adjudicate has been stored in your 22 00:01:45,730 --> 00:01:48,100 McElroy's order of Windows. 23 00:01:48,140 --> 00:01:56,360 So if you are using Mac and in-case issuing none here then simply click on new and then you will find 24 00:01:56,480 --> 00:02:00,290 the geological location under the library. 25 00:02:00,540 --> 00:02:03,730 Then Java then Java virtual machine. 26 00:02:03,910 --> 00:02:11,290 And finally we have the Java Angeliki version and now inside which we have content's home. 27 00:02:11,410 --> 00:02:18,790 So simply select this whole and now here the pod has been set up now The same applies for the windows 28 00:02:18,820 --> 00:02:19,680 as well. 29 00:02:19,690 --> 00:02:26,710 Now in case of Windows you will find a job as your key inside the program files Java and so on that 30 00:02:26,710 --> 00:02:32,020 we already saw in the previous videos close to all the java JDK for the windows. 31 00:02:32,350 --> 00:02:35,480 And now here the Cartland runtime library. 32 00:02:35,710 --> 00:02:43,410 So the English IB already has the Cartland Java runtime library so it is pre-selected so simply selected. 33 00:02:43,420 --> 00:02:48,040 Again if it is not and then hey don't finish. 34 00:02:48,230 --> 00:02:54,680 So the English ID will simply create a default project for you with some tape in front of you. 35 00:02:55,060 --> 00:02:58,370 And now on the left hand side you will find two DAPs. 36 00:02:58,480 --> 00:03:00,620 The project tab and the structure tab. 37 00:03:00,790 --> 00:03:05,740 So simply select this project tab within which you will find your project. 38 00:03:05,980 --> 00:03:10,030 And now at the top you will find the project view such as. 39 00:03:10,030 --> 00:03:16,210 Currently we are working under the project hierarchy and now on the site we have package's problems 40 00:03:16,270 --> 00:03:17,470 and so on. 41 00:03:17,500 --> 00:03:21,020 So all these things really exploded in our upcoming videos. 42 00:03:21,130 --> 00:03:26,980 So as of now simply select the project view that will simply display all the files in the same way as 43 00:03:26,980 --> 00:03:33,740 it is stored in your laptop right now inside the Codlin programming which is either girdling project. 44 00:03:33,740 --> 00:03:35,780 You will find SIAC for it. 45 00:03:35,880 --> 00:03:37,810 That stands for source. 46 00:03:37,870 --> 00:03:43,420 Now if you are an android or a Java programmer then you must be moving inside the source folder. 47 00:03:43,450 --> 00:03:49,860 We actually store all the java files and in Archy's we withstood the Cartland files. 48 00:03:49,870 --> 00:03:53,190 Now here this folder is actually blank. 49 00:03:53,380 --> 00:03:57,880 So simply write leg and let us create our first garden file. 50 00:03:58,180 --> 00:03:59,410 So click on new. 51 00:03:59,950 --> 00:04:04,610 And now here you will find Java class and Coquelin file class. 52 00:04:04,660 --> 00:04:06,640 So this is our destiny. 53 00:04:07,000 --> 00:04:14,620 So let us select this quarterly and find there and give it a name as my first file. 54 00:04:14,920 --> 00:04:18,060 And now here make sure it is filed. 55 00:04:18,250 --> 00:04:25,290 OK so insert the source folder we have simply created my first file not guilty. 56 00:04:25,320 --> 00:04:30,800 Now if you notice we have the file name as don't get the extension right. 57 00:04:30,810 --> 00:04:35,090 Similarly in Java we had Dorte Java extension. 58 00:04:35,190 --> 00:04:43,220 So my first find out guilty is actually the Cartland file inside which we will write our Hellawell program. 59 00:04:43,350 --> 00:04:51,480 Now in case of Coralee we don't require to declare the class explicitly unlike in Java where we write 60 00:04:51,510 --> 00:04:53,520 all the code within the class. 61 00:04:53,520 --> 00:04:54,070 Right. 62 00:04:54,300 --> 00:05:01,020 So in case of Gorlin we just need to define the function such as public static void main string arguments 63 00:05:01,290 --> 00:05:02,500 in case of Java. 64 00:05:02,610 --> 00:05:10,800 Similarly in girdling really find a method in its own VI such as if you end that stands for the motard 65 00:05:11,790 --> 00:05:13,210 if you are in space. 66 00:05:13,210 --> 00:05:14,180 Am I in. 67 00:05:14,250 --> 00:05:18,350 Which is the main method similar to what we write in Gates of Java. 68 00:05:18,780 --> 00:05:29,160 And then simply write a are just followed by a colon gibbered a space and then Attie of strings. 69 00:05:29,260 --> 00:05:33,450 And now you must be wondering what kind of syntax is this. 70 00:05:33,460 --> 00:05:38,490 Now trust me Garling programming language is quite expressive and concise. 71 00:05:38,500 --> 00:05:44,370 Now in case of Java we used to write public static void mean string Agias. 72 00:05:45,070 --> 00:05:45,670 Right. 73 00:05:45,820 --> 00:05:49,000 And that too we had to write it within our class. 74 00:05:49,000 --> 00:05:55,630 Now in case of girdling we just do find the if you in keyword there it simply means that this mean is 75 00:05:55,630 --> 00:06:01,060 actually the function now inside which we have added of string. 76 00:06:01,060 --> 00:06:06,210 Now in case of Codlin we actually first defined the eddy and then string. 77 00:06:06,340 --> 00:06:11,550 Unlike in Java where if you write string followed by square brackets. 78 00:06:11,620 --> 00:06:17,720 Now in case of Cartland we actually defined the variable name first followed by other data type. 79 00:06:17,800 --> 00:06:22,890 So this is actually the Adye of strings like we have defined here. 80 00:06:22,900 --> 00:06:26,470 In case of Java but I. 81 00:06:26,690 --> 00:06:33,220 So the picture is now clear in our mind and now Vawter about this return type. 82 00:06:33,240 --> 00:06:39,540 Now in case of Cartland in order to define the return type we simply use the galloon are the end of 83 00:06:39,540 --> 00:06:42,110 the method followed by the return type. 84 00:06:42,150 --> 00:06:49,480 Now in case of Cartland the void is actually represented with the help of the keyword of unit so the 85 00:06:49,480 --> 00:06:52,460 unit stands for void in Cartland. 86 00:06:52,510 --> 00:06:59,560 Right now if you want to return some integer value or the string value then simply define it here. 87 00:06:59,650 --> 00:07:01,300 Something like this. 88 00:07:01,420 --> 00:07:07,390 So as of now let's not go in that direction because we are just about to print our Hello world. 89 00:07:07,390 --> 00:07:14,780 In case of Cartland and now in order to bring something here we need to again make use of the print 90 00:07:14,960 --> 00:07:18,800 Metford like we use in any other programming language. 91 00:07:18,950 --> 00:07:23,440 So simply use print and then simply type hello. 92 00:07:23,810 --> 00:07:32,550 Void right now here at the end I want to use any semi-colon because this is girdling not Java. 93 00:07:32,740 --> 00:07:37,770 So in Scotland we don't require any semi-colon to end the statement right. 94 00:07:37,900 --> 00:07:43,450 And now again if you want to print the hello world along with the new line character then simply write 95 00:07:43,990 --> 00:07:44,430 print. 96 00:07:44,540 --> 00:07:46,970 Ellen fine. 97 00:07:47,190 --> 00:07:52,990 And now to run any Gorlin program you just need to click here just beside the function. 98 00:07:53,010 --> 00:07:54,190 Simply click here. 99 00:07:54,570 --> 00:07:58,210 And now here you will find it in my first file. 100 00:07:58,950 --> 00:08:01,370 Now you must be thinking more the heck there. 101 00:08:01,370 --> 00:08:07,440 This file is coming from my first file Katie because I had a file name is my first file dog. 102 00:08:07,450 --> 00:08:14,570 Get the but here you will find Emmis capital is also capital and their daughter is missing. 103 00:08:14,650 --> 00:08:17,080 Now I will come to this part later. 104 00:08:17,150 --> 00:08:17,960 But in short. 105 00:08:17,980 --> 00:08:20,340 Let me explain you incorrectly. 106 00:08:20,410 --> 00:08:27,190 Then invert the current compiler try to compile this file simply convert it into the class file like 107 00:08:27,190 --> 00:08:31,540 in Java reconvert door Jever file into Dorte class. 108 00:08:31,540 --> 00:08:39,760 Similarly in Cartland reconvert don't get the file into some class file whose name appears to be like 109 00:08:39,760 --> 00:08:40,270 this. 110 00:08:40,330 --> 00:08:40,950 Right. 111 00:08:41,140 --> 00:08:47,050 So here let just now it underscored So here we get. 112 00:08:47,100 --> 00:08:47,670 Hello world. 113 00:08:47,670 --> 00:08:50,510 In the output console on regulations. 114 00:08:50,520 --> 00:08:55,150 We just had our first program in case of Cartland up and running. 115 00:08:55,200 --> 00:08:57,900 So this was all about the hello world application. 116 00:08:57,900 --> 00:09:02,750 In case of Cartland that we just wrote inserted the intelligent ID. 117 00:09:02,800 --> 00:09:07,380 Now here you must be thinking that I have got these line numbers. 118 00:09:07,380 --> 00:09:13,190 Now these line numbers I've simply customized inside the settings so simply navigate to intelligent 119 00:09:13,190 --> 00:09:14,170 ighly. 120 00:09:14,460 --> 00:09:16,550 Here you will find the preferences. 121 00:09:16,620 --> 00:09:22,220 Now if you are using the Windows then simply navigate to a file and then go to settings right. 122 00:09:23,490 --> 00:09:30,810 Know since this is McIlroy's so I will simply click on preferences within which you will find the editor 123 00:09:30,930 --> 00:09:32,850 menu simply expanded. 124 00:09:32,970 --> 00:09:35,530 Now on the side you will find general. 125 00:09:35,760 --> 00:09:43,530 And now here there is the appearance option within which simply check on this show line numbers simply 126 00:09:43,580 --> 00:09:51,950 checkered here don't apply and then OK and here you will get all the line numbers in front of you so 127 00:09:51,970 --> 00:09:54,080 let's end this review as of no. 128 00:09:54,200 --> 00:09:57,710 And let's dig deep into this hello world application. 129 00:09:57,770 --> 00:09:58,940 In the next video. 130 00:09:59,060 --> 00:10:00,530 Thank you and have a good day.