1
00:00:00,410 --> 00:00:11,960
I just put in integer integer Colan percent for the OK and for the arguments for example an integer

2
00:00:11,960 --> 00:00:12,290
number.

3
00:00:12,290 --> 00:00:20,420
For example 45 and now I need to put in a semicolon at the end of my statement and here I need to output

4
00:00:20,420 --> 00:00:25,670
this value to the concert system that out that princeling.

5
00:00:26,060 --> 00:00:32,480
And then inside the apprentice's I can just refer to the name of the object C R value of 1 and then

6
00:00:32,480 --> 00:00:35,780
I need to put in a semicolon at the end of my statement.

7
00:00:35,780 --> 00:00:40,970
And now if I on my project as you can see it's going to actually output disvalue to the console.

8
00:00:40,970 --> 00:00:43,230
So as you can see here there is a padding here.

9
00:00:43,340 --> 00:00:43,990
OK.

10
00:00:44,300 --> 00:00:47,410
And this padding is because of this for here.

11
00:00:47,590 --> 00:00:48,170
OK.

12
00:00:48,470 --> 00:00:49,990
So what does this mean.

13
00:00:50,030 --> 00:00:58,840
This means that if the number of digits is less than 4 The output will be padded on the left.

14
00:00:59,080 --> 00:00:59,560
OK.

15
00:00:59,600 --> 00:01:03,530
So as you can see here 45 is less than four digits.

16
00:01:03,530 --> 00:01:06,720
This number 45 is less than four digits.

17
00:01:06,740 --> 00:01:07,180
OK.

18
00:01:07,220 --> 00:01:14,270
So because it is less than four digits the output is actually padded on the left.

19
00:01:14,420 --> 00:01:14,980
OK.

20
00:01:15,050 --> 00:01:22,730
And if I actually change this number for example to 45 65 and now if I run my project it actually put

21
00:01:22,730 --> 00:01:27,270
this value here as you can see this space here is the same as this space.

22
00:01:27,590 --> 00:01:28,990
And it is normal.

23
00:01:29,020 --> 00:01:37,430
OK but if this number here is less than four digits for example Number four the output is padded on

24
00:01:37,430 --> 00:01:38,970
the left here.

25
00:01:39,020 --> 00:01:39,950
As you can see here.

26
00:01:40,070 --> 00:01:40,650
OK.

27
00:01:40,850 --> 00:01:43,480
So now let me actually show you another example.

28
00:01:43,670 --> 00:01:46,170
Let me comment out these lines of code here.

29
00:01:46,610 --> 00:01:53,690
And here again it refers to the name of the Esterne class strain and the name of my object is as t r

30
00:01:54,230 --> 00:01:56,180
value 2.

31
00:01:56,660 --> 00:01:59,910
And then I need to put in an assignment operator here.

32
00:02:00,110 --> 00:02:05,760
And then again I refer to the name of the String class that format.

33
00:02:05,930 --> 00:02:10,130
And here I need to specify the formatting instructions for my object.

34
00:02:10,130 --> 00:02:14,650
So here I can just typing in integer.

35
00:02:15,710 --> 00:02:17,690
OK Kallen percent.

36
00:02:17,810 --> 00:02:19,350
6 The.

37
00:02:19,760 --> 00:02:26,450
And here for the arguments I can just put an integer number for example 35 and then I need to put in

38
00:02:26,450 --> 00:02:28,900
a semi-colon at the end of my statement.

39
00:02:29,150 --> 00:02:34,580
And now I can just actually output the value of this object to the console.

40
00:02:34,580 --> 00:02:40,700
So I just need to type in here a system that's out to print to learn and then inside the prentices I

41
00:02:40,700 --> 00:02:45,390
can just refer to the name of the A C R value to object.

42
00:02:45,410 --> 00:02:45,930
OK.

43
00:02:46,070 --> 00:02:53,540
And now if I had on my project as you can see it's going to actually output this value to the console

44
00:02:53,540 --> 00:02:53,950
OK.

45
00:02:53,960 --> 00:03:01,040
So as you can see here I specified that if the number of digits is less than 6 the output is going to

46
00:03:01,040 --> 00:03:02,820
be padded on the left.

47
00:03:03,020 --> 00:03:03,540
OK.

48
00:03:03,590 --> 00:03:08,410
So as you can see here that this number for 35 is less than six digits.

49
00:03:08,630 --> 00:03:12,290
So the output as you can see here is padded on the left.

50
00:03:12,290 --> 00:03:20,660
But if we actually change this value to for example 55 45 78 and now if I put on my project as you can

51
00:03:20,660 --> 00:03:23,420
see now this value is here.

52
00:03:23,550 --> 00:03:27,750
OK so now let me actually show you another example.

53
00:03:27,950 --> 00:03:31,830
So here again I need to actually create a strange object.

54
00:03:31,880 --> 00:03:37,860
So I just need to refer to the name of the string class as strange as the R value.

55
00:03:38,670 --> 00:03:39,470
Free.

56
00:03:39,990 --> 00:03:45,570
And then I need to put in an assignment operator here and then I need to refer to the name of the string

57
00:03:45,570 --> 00:03:47,670
class that format.

58
00:03:48,360 --> 00:03:54,830
And here I need to specify the formatting instructions for my are of the object.

59
00:03:54,900 --> 00:03:57,600
So I just need to put into double quotes here.

60
00:03:57,600 --> 00:04:06,210
Integer colon space per cent minus five D.

61
00:04:06,650 --> 00:04:11,110
And here I can't just put in an integer number for example 47.

62
00:04:11,330 --> 00:04:16,040
And then I need to put in a semicolon at the end of my statement at the end of my statement.

63
00:04:16,100 --> 00:04:19,510
And now I want to output this value to the console.

64
00:04:19,520 --> 00:04:27,090
So I just need to type in here or system that out does the prince learn and then inside the prentices

65
00:04:27,110 --> 00:04:30,510
I can just refer to the name of that is the R-value of the object.

66
00:04:30,620 --> 00:04:33,600
And then I need to put in a semicolon at the end of my statement.

67
00:04:33,620 --> 00:04:38,080
And now if I write on my project as you can see it's going to output this value to the console.

68
00:04:38,090 --> 00:04:39,050
OK.

69
00:04:39,440 --> 00:04:49,440
So here I am saying that if the number of digits is less than 5 The output will be padded on the right.

70
00:04:49,670 --> 00:04:53,750
OK this number here 47 is less than 5 digits.

71
00:04:53,750 --> 00:04:57,230
So now the output is actually padded on the right.

72
00:04:57,260 --> 00:05:03,640
So as you can see here this system that out that princeling here this and here means a new character.

73
00:05:03,710 --> 00:05:09,140
If we actually delete this and here and if I don't on my project now again it's going to actually get

74
00:05:09,140 --> 00:05:11,150
out with this value to the concert OK.

75
00:05:11,210 --> 00:05:18,410
So now if we actually want to output another value to the console for example a system that out that

76
00:05:18,550 --> 00:05:24,620
insulin and then inside the apprentice's I can't just put in some values and if I run on my project

77
00:05:24,620 --> 00:05:35,330
now as you can see here you can easily see that because this is this number here 47 is less than five

78
00:05:35,330 --> 00:05:36,360
digits.

79
00:05:36,620 --> 00:05:38,920
The output is padded on the right.

80
00:05:38,930 --> 00:05:39,220
OK.

81
00:05:39,230 --> 00:05:40,350
As you can see here.

82
00:05:40,600 --> 00:05:40,990
OK.

83
00:05:41,000 --> 00:05:50,960
If this value here if this number 47 is greater than or equal to 5 digits for example 47 67 89.

84
00:05:51,230 --> 00:05:57,030
And if I don't my project now as you can see these values are now beside each other.

85
00:05:57,160 --> 00:05:57,610
OK.

86
00:05:57,650 --> 00:06:06,320
If I actually change this number to 4 for example and here as you can see now because this number here

87
00:06:06,320 --> 00:06:11,160
is less than five digits the output is padded on the right.

88
00:06:11,410 --> 00:06:11,900
OK.

89
00:06:11,930 --> 00:06:13,460
So hopefully that makes sense.

90
00:06:13,460 --> 00:06:15,830
So now let me actually show you another example.

91
00:06:16,010 --> 00:06:19,750
So first let me ask you to comment out these lines of code here.

92
00:06:20,270 --> 00:06:24,150
So here again I need to look first with the name of this string class strain.

93
00:06:24,800 --> 00:06:34,010
And the name of my object is s t r 1 and I need to put in an assignment operator here and then again

94
00:06:34,040 --> 00:06:38,060
I refer to the name of the string class as string data format.

95
00:06:38,120 --> 00:06:43,440
And here I need to actually specify the formatting instructions for my object.

96
00:06:43,580 --> 00:06:56,390
And inside these double codes I can just type in integer colon percent 0 8 D and for the arguments I

97
00:06:56,390 --> 00:07:02,900
can just put in an integer number for example ninety eight and then I need to put in a semicolon at

98
00:07:02,900 --> 00:07:04,770
the end of my statement.

99
00:07:04,910 --> 00:07:08,720
And now I can just output this value to the console.

100
00:07:08,720 --> 00:07:09,860
So I just need to type in here.

101
00:07:09,860 --> 00:07:14,000
System that out that princeling.

102
00:07:14,420 --> 00:07:18,590
And then inside the practices I can just refer to the name of my object and then I need to put in a

103
00:07:18,590 --> 00:07:21,220
semi-colon at the end of my statement.

104
00:07:21,230 --> 00:07:26,020
So now if I run my project as you can see it's going to actually output this value to the console OK.

105
00:07:26,030 --> 00:07:31,850
I specify that if the number of digits is less than 8 The output will be padded on the left.

106
00:07:31,850 --> 00:07:39,230
So here as you can see I specified that if the number of digits is less than 8 The output will be padded

107
00:07:39,320 --> 00:07:41,420
on the left with zeros.

108
00:07:41,430 --> 00:07:42,010
OK.

109
00:07:42,110 --> 00:07:44,260
So as you can see here this number here none.

110
00:07:44,290 --> 00:07:46,580
Ninety eight is less than 8 digits.

111
00:07:46,610 --> 00:07:52,880
OK so now the output is padded on the left with zeroes OK.

112
00:07:52,900 --> 00:07:59,200
So here if we actually change this number to ninety eight 45 67 89.

113
00:07:59,510 --> 00:08:05,190
And if I had on my project again as you can see now this value is output to the console.

114
00:08:05,200 --> 00:08:10,020
OK but if we actually change this number to for example 98 45.

115
00:08:10,190 --> 00:08:12,790
Now it's going to actually put this value here.

116
00:08:12,980 --> 00:08:14,120
OK.

117
00:08:14,210 --> 00:08:16,100
Now these are value.

118
00:08:16,100 --> 00:08:18,860
This number is less than 8 digits.

119
00:08:18,860 --> 00:08:25,300
So these the output is now actually padded on the left with zeroes OK.

120
00:08:25,310 --> 00:08:27,470
So hopefully that makes sense.

121
00:08:27,650 --> 00:08:30,520
Now let me actually show you another example.

122
00:08:31,330 --> 00:08:37,410
So first I need to refer to the name of the Student class the name of my object is as is the art.

123
00:08:37,600 --> 00:08:43,860
And then I put in an assignment operator here is three in that format.

124
00:08:44,410 --> 00:08:48,700
And here I need to specify the formatting instructions for my object.

125
00:08:48,730 --> 00:09:03,460
I just type in person minus 15 s percent minus 15 s person s Ok.

126
00:09:03,750 --> 00:09:06,400
Now I need to specify the arguments.

127
00:09:06,510 --> 00:09:15,180
So the first argument is first column the second argument is second column and the first one is first

128
00:09:15,180 --> 00:09:15,660
column

129
00:09:19,050 --> 00:09:19,700
OK.

130
00:09:20,100 --> 00:09:23,550
And then I need to put in a semicolon at the end of my statement.

131
00:09:23,550 --> 00:09:25,810
Now you want to output this right to the console.

132
00:09:25,830 --> 00:09:34,020
So I just need to type in here system that out that princeling and then inside the practices I just

133
00:09:34,020 --> 00:09:36,930
need to refer to the name of this object as the are two.

134
00:09:37,280 --> 00:09:40,720
And now if I had on my project let's see what happens.

135
00:09:40,800 --> 00:09:44,390
As you can see it's can actually be added with these values to the console OK.

