1
00:00:00,140 --> 00:00:00,830
OK.

2
00:00:01,200 --> 00:00:08,400
So now that I am referring to the name of my invaluable in order to get to read it's value what J I

3
00:00:08,400 --> 00:00:13,530
am actually adding this value to the number of 40 here.

4
00:00:13,560 --> 00:00:14,410
OK.

5
00:00:14,670 --> 00:00:16,370
So the result would be 41.

6
00:00:16,380 --> 00:00:17,150
OK.

7
00:00:17,370 --> 00:00:22,060
I am assigning the value of this operation here to this rally event.

8
00:00:22,290 --> 00:00:23,250
OK.

9
00:00:23,750 --> 00:00:28,870
And in this slide I Outwood the value of this variable to the console.

10
00:00:29,210 --> 00:00:29,820
OK.

11
00:00:31,330 --> 00:00:34,570
So let's run our project now as you can see here.

12
00:00:34,960 --> 00:00:38,320
It outputs the value 1 to the console.

13
00:00:38,320 --> 00:00:39,540
This rally to the console.

14
00:00:39,610 --> 00:00:44,260
And here it outputs of this value to the console.

15
00:00:44,350 --> 00:00:46,580
OK which is the result of this operation.

16
00:00:47,020 --> 00:00:50,830
As you can see it outputs the value of this variable to the console.

17
00:00:51,020 --> 00:00:51,830
OK.

18
00:00:52,690 --> 00:01:02,150
So the next example that I want to actually show you is about negative numbers in Java.

19
00:01:02,220 --> 00:01:02,460
OK.

20
00:01:02,470 --> 00:01:09,980
You can create negative numbers in Java for example if you want to create an integer variable here.

21
00:01:10,100 --> 00:01:17,440
And so the data type of my variable is in it and then the name of my variable would be negative.

22
00:01:19,150 --> 00:01:25,840
Number and then I assigned the value minus 10 to my variable here.

23
00:01:25,940 --> 00:01:26,620
OK.

24
00:01:26,770 --> 00:01:34,940
And here I just I can easily output the value of this value to the console system got out that Prince

25
00:01:34,960 --> 00:01:37,870
land and that inside Apprentice's.

26
00:01:38,080 --> 00:01:41,490
I just need to refer to the name of my variable here.

27
00:01:41,560 --> 00:01:43,000
So negative.

28
00:01:43,240 --> 00:01:50,440
And here again I use the other complex feature of the eclipse and now it's going to show me some recommendations.

29
00:01:50,590 --> 00:01:53,280
And here I choose the name of my variable here.

30
00:01:53,300 --> 00:01:57,570
OK the name of the variable that I created in the line 21.

31
00:01:57,660 --> 00:01:58,700
OK.

32
00:01:59,120 --> 00:02:05,040
And I just need to put a semi-colon up at the end of my statement here.

33
00:02:05,200 --> 00:02:06,340
OK.

34
00:02:06,860 --> 00:02:07,960
And as you can see.

35
00:02:08,170 --> 00:02:14,920
So if I run my project now it outputs this value which is the value of this value to the console.

36
00:02:15,010 --> 00:02:16,570
OK minus 10.

37
00:02:17,020 --> 00:02:23,770
The next example that I want to show you here is about negative decimal numbers.

38
00:02:23,770 --> 00:02:24,330
OK.

39
00:02:24,580 --> 00:02:31,600
So first let me actually comment out this line of code here because I don't want to execute this line

40
00:02:31,600 --> 00:02:32,420
of code.

41
00:02:32,860 --> 00:02:38,190
And first I need to declare the data type of Y variable which is float.

42
00:02:38,240 --> 00:02:38,910
OK.

43
00:02:39,790 --> 00:02:43,670
And then I need to actually give my variable a name.

44
00:02:43,690 --> 00:02:54,450
For example negative negative the small number or J.

45
00:02:54,970 --> 00:03:01,680
And then I assign a negative the symbol number to my variable for example four point eight.

46
00:03:01,750 --> 00:03:02,410
OK.

47
00:03:02,650 --> 00:03:11,320
And then at the end of my Actually statement at the end of my variable declaration I need to put a semicolon.

48
00:03:11,500 --> 00:03:12,470
OK.

49
00:03:12,910 --> 00:03:16,310
So here as you can see it's now Scheunemann error.

50
00:03:16,420 --> 00:03:18,700
OK so let's see what's this letter.

51
00:03:18,790 --> 00:03:26,530
We need to hover our mouse pointer over the error area in order to see what's the error type mismatch

52
00:03:26,860 --> 00:03:30,570
cannot convert from double to float.

53
00:03:30,580 --> 00:03:38,610
So as I said earlier in this section all floating point lead rules are considered to be of the double

54
00:03:38,620 --> 00:03:41,180
valuable time instead of load.

55
00:03:41,280 --> 00:03:42,090
OK.

56
00:03:42,370 --> 00:03:48,610
To specify a literal of load add the letter S to the literal.

57
00:03:48,730 --> 00:03:49,290
OK.

58
00:03:49,510 --> 00:03:57,780
So in order to make this little float we need to add the letter F at the end of our leader on here.

59
00:03:57,820 --> 00:03:58,580
OK.

60
00:03:59,600 --> 00:04:02,670
So as you can see here now the error is gone.

61
00:04:02,720 --> 00:04:08,470
OK so now if you want to output the value of this variable to the console.

62
00:04:08,600 --> 00:04:12,490
I just need to type in here system with a capital S..

63
00:04:12,500 --> 00:04:17,980
OK this is really important system that's out.

64
00:04:18,230 --> 00:04:26,080
Got princeling and the inside Apprentice's you just need to refer to the name of this variable negative

65
00:04:27,800 --> 00:04:28,460
number.

66
00:04:28,780 --> 00:04:32,650
So here I use the auto complete feature of the eclipse.

67
00:04:32,650 --> 00:04:33,530
OK.

68
00:04:34,150 --> 00:04:37,310
And now it's going to show me some recommendations.

69
00:04:37,480 --> 00:04:44,620
So I choose my variable name here and at the end of your statements you need to put in a semicolon.

70
00:04:44,680 --> 00:04:54,100
OK so if I run my project now as you can see it outputs the value of this valuable to the customer which

71
00:04:54,100 --> 00:04:56,450
is number four point eight.

72
00:04:56,640 --> 00:04:57,390
OK.

73
00:04:57,940 --> 00:05:04,310
So the next example is about larger integer leaders.

74
00:05:04,350 --> 00:05:05,050
OK.

75
00:05:05,320 --> 00:05:14,140
So a larger integer literal can include an underscore character to make it more readable to humans.

76
00:05:14,140 --> 00:05:14,820
OK.

77
00:05:15,040 --> 00:05:22,960
The underscore character serves the same purpose as a comma in a large number make unique its value

78
00:05:23,230 --> 00:05:25,740
more readable to humans.

79
00:05:25,950 --> 00:05:26,520
OK.

80
00:05:26,770 --> 00:05:32,120
So let's so let me give you an example about this concept.

81
00:05:32,140 --> 00:05:32,740
OK.

82
00:05:33,010 --> 00:05:37,030
So the data type of our variable is large.

83
00:05:37,290 --> 00:05:37,890
OK.

84
00:05:38,050 --> 00:05:45,490
And the name of my variable is of very large number as you can see here.

85
00:05:46,490 --> 00:05:47,110
OK.

86
00:05:47,310 --> 00:05:51,640
And then I assign a very large number to this variable.

87
00:05:51,720 --> 00:05:56,030
For example this number OK.

88
00:05:56,310 --> 00:06:00,300
And at the end of my statement I just put a semicolon OK.

89
00:06:00,720 --> 00:06:05,750
And now as you can see it's a little hard to read this value here.

90
00:06:05,790 --> 00:06:06,420
OK.

91
00:06:06,690 --> 00:06:15,220
So we use the underscore character in order to make this value more apparent for humans.

92
00:06:15,240 --> 00:06:15,920
OK.

93
00:06:16,110 --> 00:06:24,330
So now if I use the others for character here as you can see and if I use another underscore character

94
00:06:24,330 --> 00:06:28,630
here as you can see this value is now more readable.

95
00:06:28,800 --> 00:06:29,400
OK.

96
00:06:29,580 --> 00:06:35,190
And the Java compiler ignores these activists.

97
00:06:35,230 --> 00:06:43,840
OK so you can use underscore characters in order to make your numbers more readable to humans.

98
00:06:43,920 --> 00:06:50,550
OK so now I want to actually output the value of this variable to the console.

99
00:06:50,670 --> 00:06:59,510
So here we just need to add typing system that out that princeling and then inside the apprentice's

100
00:06:59,930 --> 00:07:02,250
just referred to the name of the variable.

101
00:07:02,270 --> 00:07:03,480
OK.

102
00:07:04,130 --> 00:07:09,410
And that at the end of your statement you just need to put in a semi-colon.

103
00:07:09,650 --> 00:07:19,430
OK so the next example is about Boolean literals OK the boolean literal is true and false are the only

104
00:07:19,430 --> 00:07:26,190
two values you can use when assigning a value to a boolean value type.

105
00:07:26,370 --> 00:07:29,210
OK so now let me give you an example.

106
00:07:29,210 --> 00:07:29,720
OK.

107
00:07:29,990 --> 00:07:34,070
So the data type of our variable is boolean.

108
00:07:34,520 --> 00:07:42,140
As you can see here and the name of my variable is programming is fun.

109
00:07:42,140 --> 00:07:46,790
Programming is fun.

110
00:07:47,000 --> 00:07:47,680
OK.

111
00:07:47,990 --> 00:07:50,760
And then I assign a value to my variable.

112
00:07:50,810 --> 00:07:51,850
For example true.

113
00:07:52,000 --> 00:07:52,860
OK.

114
00:07:53,330 --> 00:07:59,080
True and False are the only values you can assign to a boolean value of.

115
00:07:59,090 --> 00:08:03,050
OK so now I want to output the value of this variable.

116
00:08:03,050 --> 00:08:10,590
The console system that out that princeling and the inside apprentices just refer to the name of the

117
00:08:10,590 --> 00:08:11,270
variable.

118
00:08:11,370 --> 00:08:15,350
So here I use the two complex feature of the eclipse.

119
00:08:15,690 --> 00:08:20,440
And then at the end of my statement I put a semi-colon.

120
00:08:20,640 --> 00:08:21,380
OK.

121
00:08:21,610 --> 00:08:25,570
And now let me comment out this line of code here.

122
00:08:25,950 --> 00:08:33,320
And if I run my project now as you can see it outputs the value of is valuable to the console.

123
00:08:33,390 --> 00:08:36,920
AJ So this is the literal truth.

124
00:08:37,040 --> 00:08:37,480
OK.

125
00:08:42,550 --> 00:08:53,150
So the next example is about character leader roles are expressed by a single character surrounded by

126
00:08:53,150 --> 00:08:55,190
single quotation marks.

127
00:08:55,190 --> 00:08:55,630
OK.

128
00:08:55,790 --> 00:08:59,200
So now let me give you some real examples.

129
00:08:59,360 --> 00:09:00,050
OK.

130
00:09:00,230 --> 00:09:07,440
So the data type are valuable is cards but yet you can hardly chart or charged.

131
00:09:07,640 --> 00:09:08,340
OK.

132
00:09:08,660 --> 00:09:12,750
And then the name of are valuable for example is a.

133
00:09:12,850 --> 00:09:13,460
OK.

134
00:09:13,730 --> 00:09:17,360
And then I assign the letter A to my body.

135
00:09:17,750 --> 00:09:27,400
So I just putting two single quotations here and then I assign the letter A to my value.

136
00:09:27,680 --> 00:09:32,530
And at the end of your statement you need to put a semicolon.

137
00:09:32,890 --> 00:09:33,420
OK.

138
00:09:33,710 --> 00:09:41,170
So now another example is car for example hash OK.

139
00:09:41,520 --> 00:09:45,330
And then I assign the hash symbol to my value.

140
00:09:45,490 --> 00:09:46,240
OK.

141
00:09:46,620 --> 00:09:54,250
Or I can actually create another variable and the name of my variable is 3.

142
00:09:55,250 --> 00:09:59,650
And then I can assign the value three to my value.

143
00:09:59,740 --> 00:10:00,090
OK.

