1
00:00:00,950 --> 00:00:03,950
The next primitive data type is like.

2
00:00:04,230 --> 00:00:07,910
And here I need to actually give this variable a name.

3
00:00:08,070 --> 00:00:10,840
For example land value.

4
00:00:11,300 --> 00:00:12,260
OK.

5
00:00:12,750 --> 00:00:15,840
And then I'm going to actually assign a value to this variable.

6
00:00:15,850 --> 00:00:16,620
OK.

7
00:00:16,980 --> 00:00:24,060
Disvalue is actually a very large value and it's now showing me an error and it says this value is out

8
00:00:24,060 --> 00:00:24,480
of range.

9
00:00:24,480 --> 00:00:25,540
OK.

10
00:00:25,740 --> 00:00:32,990
So as you can see here this long data type only hold of value between these two numbers.

11
00:00:33,000 --> 00:00:33,510
OK.

12
00:00:33,540 --> 00:00:40,380
You can not actually exceed the maximum value that they can assign to this variable.

13
00:00:40,380 --> 00:00:44,440
Now what out the value of this variable for the console.

14
00:00:44,670 --> 00:00:47,540
So just like in here system that's out of insulin.

15
00:00:47,760 --> 00:00:52,650
And then inside the practices I just need to refer to the name of the variable and at the end of my

16
00:00:52,650 --> 00:00:59,040
statement I just need to put in a semicolon and here or I forgot to actually comment out this line of

17
00:00:59,040 --> 00:01:00,060
code here.

18
00:01:00,330 --> 00:01:05,540
And if I run my project again it's gonna output the value of this variable to the console.

19
00:01:05,550 --> 00:01:06,510
OK.

20
00:01:06,630 --> 00:01:15,240
Now I want to actually talk about the autocomplete feature of the eclipse ID and this feature helps

21
00:01:15,240 --> 00:01:17,090
you to write your code faster.

22
00:01:17,130 --> 00:01:17,900
OK.

23
00:01:18,120 --> 00:01:24,630
So now if you want to refer to the name of the last rowdier bell as you can see I just need to actually

24
00:01:24,990 --> 00:01:29,880
press the control and space key on my keyboard at the same time.

25
00:01:29,970 --> 00:01:31,010
OK.

26
00:01:31,320 --> 00:01:38,970
So for example I just type in here l or and and then control plus space and then it's going to show

27
00:01:38,970 --> 00:01:42,990
me some recommendations which I can choose the name of that variable.

28
00:01:42,990 --> 00:01:43,840
OK.

29
00:01:44,430 --> 00:01:48,270
So that's it for the autocomplete feature of Eclipse.

30
00:01:48,270 --> 00:01:51,440
The next primitive data type is flawed.

31
00:01:51,570 --> 00:01:52,430
OK.

32
00:01:52,650 --> 00:01:58,410
So as you can see here I just need to specify the Data Type of my variable which is bloats the name

33
00:01:58,410 --> 00:02:05,570
of my variable would be float decimal number and I assign a value to my body.

34
00:02:05,580 --> 00:02:07,680
But as you can see here three point.

35
00:02:07,810 --> 00:02:08,520
OK.

36
00:02:08,730 --> 00:02:10,820
So as I said earlier in this tutorial.

37
00:02:10,890 --> 00:02:17,670
Float data type is a single precision relative to its floating point and it can hold a value between

38
00:02:17,670 --> 00:02:18,520
these two numbers.

39
00:02:18,540 --> 00:02:19,350
OK.

40
00:02:19,590 --> 00:02:23,700
Floating point numbers are numbers with a decimal point.

41
00:02:23,700 --> 00:02:24,360
OK.

42
00:02:24,480 --> 00:02:26,930
So as you can see here it's now showing an error.

43
00:02:27,060 --> 00:02:34,060
So if I actually hover over the error area it says Type Mismatch cannot convert from double to float.

44
00:02:34,080 --> 00:02:34,710
OK.

45
00:02:34,830 --> 00:02:40,020
And here we need to add the letter F at the end of our value.

46
00:02:40,020 --> 00:02:46,540
OK so in this way we are actually making this value of float value.

47
00:02:46,620 --> 00:02:52,860
Otherwise the eclipse assumes that we are actually assigning a double value to our variable.

48
00:02:53,150 --> 00:02:57,170
Ok so that's the reason that it's now showing us an error.

49
00:02:57,360 --> 00:03:05,360
So we must add the letter F at the end of our value in order to make this value of load value.

50
00:03:05,400 --> 00:03:11,690
OK so this is a very important point about bloats data type.

51
00:03:11,730 --> 00:03:12,200
OK.

52
00:03:12,240 --> 00:03:16,740
So if I add the letter F at the end of my value here as you can see the error is now gone.

53
00:03:16,890 --> 00:03:23,370
And if I for example want to output the value of this variable to the console as you can see here I

54
00:03:23,370 --> 00:03:29,410
just need to type in here system data out that princeling and then inside Apprentice's.

55
00:03:29,520 --> 00:03:33,570
I just need to put in the name of the variable here.

56
00:03:33,930 --> 00:03:34,290
OK.

57
00:03:34,290 --> 00:03:38,740
And at the end I just need to put the semi-colon at the end of my statement.

58
00:03:38,980 --> 00:03:44,950
And if I run my projects now it outputs the value of this variable to the console.

59
00:03:45,060 --> 00:03:47,750
So let me comment out this line of code here.

60
00:03:48,240 --> 00:03:54,710
And if I run my project again as you can see this is the value of my offloads the small number ready.

61
00:03:54,750 --> 00:03:55,310
OK.

62
00:03:56,310 --> 00:03:58,840
The next primitive data type is double.

63
00:03:58,860 --> 00:03:59,410
OK.

64
00:03:59,580 --> 00:04:01,530
Double data type is like float.

65
00:04:01,680 --> 00:04:02,360
OK.

66
00:04:02,580 --> 00:04:10,590
So the name of my variable would be double decimal number and I assign a value to my body here.

67
00:04:10,630 --> 00:04:16,070
OK so at the end I need to add the semicolon here.

68
00:04:16,290 --> 00:04:20,210
And as you can see here the data type of my variable is Stobart.

69
00:04:20,240 --> 00:04:20,920
OK.

70
00:04:20,970 --> 00:04:27,770
And as I said earlier in the story all double data type is a double precision 64 with floating point.

71
00:04:27,900 --> 00:04:31,190
And it can hold a value between these two numbers.

72
00:04:31,200 --> 00:04:31,800
OK.

73
00:04:32,040 --> 00:04:38,160
So double data type can be used for more precise numbers as you can see here.

74
00:04:38,160 --> 00:04:38,950
OK.

75
00:04:39,240 --> 00:04:43,940
So now I want to actually output the value of this variable to the console.

76
00:04:43,950 --> 00:04:50,310
So just like in here system that out that insulin and that inside the apprentice's just referred to

77
00:04:50,310 --> 00:04:51,700
the name of that variable.

78
00:04:51,720 --> 00:04:52,130
OK.

79
00:04:52,140 --> 00:04:53,410
Double the small number.

80
00:04:53,640 --> 00:04:58,510
And at the end of your statement just put up a semicolon and then run your project.

81
00:04:58,530 --> 00:05:03,630
Now as you can see here it's going to output the value of this variable to the console.

82
00:05:03,690 --> 00:05:07,580
OK so the next primitive data type is called.

83
00:05:07,620 --> 00:05:11,540
OK you can call it charge what I prepared to call it cost.

84
00:05:11,610 --> 00:05:12,370
OK.

85
00:05:12,600 --> 00:05:19,470
The name of the variable would be character and I'm going to assign a value to my variable as you can

86
00:05:19,470 --> 00:05:20,260
see here.

87
00:05:20,400 --> 00:05:20,840
OK.

88
00:05:20,850 --> 00:05:27,320
For assigning values to car or chart variables we use single quotation marks.

89
00:05:27,350 --> 00:05:37,290
OK earlier NDC Tauriel cartilages has had 16 bits and car data type is used for individual characters

90
00:05:37,350 --> 00:05:41,240
such as the letters numbers punctuation and other symbols.

91
00:05:41,250 --> 00:05:42,120
OK.

92
00:05:42,390 --> 00:05:46,820
Now I want to actually output the value of this variable to the console.

93
00:05:47,010 --> 00:05:52,330
So I just need to type in her system that out that princeling and inside the parenthesis just refer

94
00:05:52,330 --> 00:05:53,760
to the name of that variable.

95
00:05:53,880 --> 00:06:00,810
And if I run my projects now as you can see it outputs the value of this valuable to the console.

96
00:06:00,860 --> 00:06:05,830
OK now I want to assign another value to this variable here.

97
00:06:05,910 --> 00:06:12,180
OK so I just need to refer to the name of that variable and then I need to actually assign a value to

98
00:06:12,180 --> 00:06:13,240
my variable here.

99
00:06:13,250 --> 00:06:20,110
OK so now if I actually output the value of this variable to the console.

100
00:06:20,320 --> 00:06:21,650
OK let's see what happens.

101
00:06:21,660 --> 00:06:22,360
OK.

102
00:06:22,740 --> 00:06:25,710
So here I just need to refer to the name of this variable.

103
00:06:26,070 --> 00:06:29,820
And at the end I put a semicolon OK at the end of your statement.

104
00:06:29,820 --> 00:06:34,690
So now I run my project as you can see the first value is this symbol.

105
00:06:34,710 --> 00:06:35,580
OK.

106
00:06:35,970 --> 00:06:39,820
And the second value as you can see here these dots here.

107
00:06:39,990 --> 00:06:43,920
This is the last value that I assigned to my variable.

108
00:06:44,030 --> 00:06:44,660
OK.

109
00:06:45,590 --> 00:06:48,180
So let me actually show you another example.

110
00:06:48,430 --> 00:06:54,640
So if I want to actually add another value to my valuable for example something like this why do you

111
00:06:54,650 --> 00:06:58,560
if you want to output the value of this variable to the consul here.

112
00:06:58,870 --> 00:07:01,220
OK let's see what happens again.

113
00:07:01,560 --> 00:07:04,630
And at the end of your statement just put a semi-colon.

114
00:07:04,630 --> 00:07:05,260
OK.

115
00:07:05,500 --> 00:07:13,260
And then run your project as you can see the last value is this value that I assign to my variable here.

116
00:07:13,350 --> 00:07:13,880
OK.

117
00:07:13,990 --> 00:07:18,690
So this is a very important point about assigning values to variables.

118
00:07:18,740 --> 00:07:24,820
OK so let me now actually again output the value of this character variable to the console and let's

119
00:07:24,820 --> 00:07:25,890
see what happens.

120
00:07:26,050 --> 00:07:32,330
System that out that princeling and then inside Apprentice's just referred to the name of this variable.

121
00:07:32,470 --> 00:07:34,420
And at the end with a semicolon.

122
00:07:34,480 --> 00:07:41,510
So as you can see here again it actually outputs this last value that I assigned to this variable.

123
00:07:41,560 --> 00:07:42,210
OK.

124
00:07:42,520 --> 00:07:50,280
So the last value that you assign to your variable is consistent throughout the lifetime of your variable.

125
00:07:50,310 --> 00:07:51,760
In your application.

126
00:07:51,890 --> 00:07:52,700
OK.

127
00:07:53,020 --> 00:07:58,930
So this is a very important point that you should always consider about assigning values to variables.

128
00:07:59,170 --> 00:08:03,090
And now let me give you another example about this concept.

129
00:08:03,100 --> 00:08:03,700
OK.

130
00:08:03,970 --> 00:08:09,710
So now if you want to for example assign another value to this lady here.

131
00:08:09,880 --> 00:08:12,570
Ok for example this ampersand symbol.

132
00:08:12,640 --> 00:08:13,570
OK.

133
00:08:13,600 --> 00:08:17,680
So here I want to actually output the value of this variable to the console.

134
00:08:17,710 --> 00:08:18,350
OK.

135
00:08:18,550 --> 00:08:23,920
So just typing system that out that that print line and then inside the Prentice's just referred to

136
00:08:23,920 --> 00:08:25,140
the name of the variable.

137
00:08:25,220 --> 00:08:28,230
Here I use the autocomplete feature of the eclipse.

138
00:08:28,480 --> 00:08:35,020
And at the end just with a semi-colon and run your project as you can see here the last value here is

139
00:08:35,020 --> 00:08:38,750
the value that I assign to this value here.

140
00:08:38,770 --> 00:08:42,360
OK this is the last value that we assigned to this value.

141
00:08:42,430 --> 00:08:45,040
So the next primitive data type is Boulia.

142
00:08:45,190 --> 00:08:45,490
OK.

143
00:08:45,490 --> 00:08:51,080
As I said earlier this data type only holds either true or false values.

144
00:08:51,280 --> 00:08:54,160
The name of the variable with B is ok.

145
00:08:54,370 --> 00:08:57,340
I assign the value true to my variable here.

146
00:08:57,370 --> 00:08:57,830
OK.

147
00:08:57,850 --> 00:09:03,560
So as you can see boolean data type are these data type only holds are either true or false.

148
00:09:03,610 --> 00:09:12,640
Ok so here I want to output the value of this variable to the console A-J system that's out that pre-incident

149
00:09:12,870 --> 00:09:16,680
handed inside the apprentice's just referred to the name of this variable is.

150
00:09:16,720 --> 00:09:17,360
OK.

151
00:09:17,440 --> 00:09:18,010
OK.

152
00:09:18,280 --> 00:09:21,610
So first let's actually comment how these lines of code.

153
00:09:21,640 --> 00:09:23,870
Because I don't want to execute them.

154
00:09:24,190 --> 00:09:24,920
OK.

155
00:09:25,540 --> 00:09:31,440
So here I run my project as you can see it outputs the value true to the console.

156
00:09:31,450 --> 00:09:32,510
OK.

157
00:09:32,830 --> 00:09:37,240
Let me actually assign another value to this variable here.

158
00:09:37,900 --> 00:09:42,860
So now I assign Faas as the value of this variable here.

159
00:09:42,880 --> 00:09:43,510
OK.

160
00:09:43,630 --> 00:09:50,420
So now I want to actually output the value of this variable to the console system that out that to.

161
00:09:50,680 --> 00:09:56,680
And then inside Apprentice's just referred to the name of this variable and put a semicolon at the end

162
00:09:56,680 --> 00:09:59,770
of your statement and run your project as you can see.

