I just put in integer integer Colan percent for the OK and for the arguments for example an integer
number.
For example 45 and now I need to put in a semicolon at the end of my statement and here I need to output
this value to the concert system that out that princeling.
And then inside the apprentice's I can just refer to the name of the object C R value of 1 and then
I need to put in a semicolon at the end of my statement.
And now if I on my project as you can see it's going to actually output disvalue to the console.
So as you can see here there is a padding here.
OK.
And this padding is because of this for here.
OK.
So what does this mean.
This means that if the number of digits is less than 4 The output will be padded on the left.
OK.
So as you can see here 45 is less than four digits.
This number 45 is less than four digits.
OK.
So because it is less than four digits the output is actually padded on the left.
OK.
And if I actually change this number for example to 45 65 and now if I run my project it actually put
this value here as you can see this space here is the same as this space.
And it is normal.
OK but if this number here is less than four digits for example Number four the output is padded on
the left here.
As you can see here.
OK.
So now let me actually show you another example.
Let me comment out these lines of code here.
And here again it refers to the name of the Esterne class strain and the name of my object is as t r
value 2.
And then I need to put in an assignment operator here.
And then again I refer to the name of the String class that format.
And here I need to specify the formatting instructions for my object.
So here I can just typing in integer.
OK Kallen percent.
6 The.
And here for the arguments I can just put an integer number for example 35 and then I need to put in
a semi-colon at the end of my statement.
And now I can just actually output the value of this object to the console.
So I just need to type in here a system that's out to print to learn and then inside the prentices I
can just refer to the name of the A C R value to object.
OK.
And now if I had on my project as you can see it's going to actually output this value to the console
OK.
So as you can see here I specified that if the number of digits is less than 6 the output is going to
be padded on the left.
OK.
So as you can see here that this number for 35 is less than six digits.
So the output as you can see here is padded on the left.
But if we actually change this value to for example 55 45 78 and now if I put on my project as you can
see now this value is here.
OK so now let me actually show you another example.
So here again I need to actually create a strange object.
So I just need to refer to the name of the string class as strange as the R value.
Free.
And then I need to put in an assignment operator here and then I need to refer to the name of the string
class that format.
And here I need to specify the formatting instructions for my are of the object.
So I just need to put into double quotes here.
Integer colon space per cent minus five D.
And here I can't just put in an integer number for example 47.
And then I need to put in a semicolon at the end of my statement at the end of my statement.
And now I want to output this value to the console.
So I just need to type in here or system that out does the prince learn and then inside the prentices
I can just refer to the name of that is the R-value of the object.
And then I need to put in a semicolon at the end of my statement.
And now if I write on my project as you can see it's going to output this value to the console.
OK.
So here I am saying that if the number of digits is less than 5 The output will be padded on the right.
OK this number here 47 is less than 5 digits.
So now the output is actually padded on the right.
So as you can see here this system that out that princeling here this and here means a new character.
If we actually delete this and here and if I don't on my project now again it's going to actually get
out with this value to the concert OK.
So now if we actually want to output another value to the console for example a system that out that
insulin and then inside the apprentice's I can't just put in some values and if I run on my project
now as you can see here you can easily see that because this is this number here 47 is less than five
digits.
The output is padded on the right.
OK.
As you can see here.
OK.
If this value here if this number 47 is greater than or equal to 5 digits for example 47 67 89.
And if I don't my project now as you can see these values are now beside each other.
OK.
If I actually change this number to 4 for example and here as you can see now because this number here
is less than five digits the output is padded on the right.
OK.
So hopefully that makes sense.
So now let me actually show you another example.
So first let me ask you to comment out these lines of code here.
So here again I need to look first with the name of this string class strain.
And the name of my object is s t r 1 and I need to put in an assignment operator here and then again
I refer to the name of the string class as string data format.
And here I need to actually specify the formatting instructions for my object.
And inside these double codes I can just type in integer colon percent 0 8 D and for the arguments I
can just put in an integer number for example ninety eight and then I need to put in a semicolon at
the end of my statement.
And now I can just output this value to the console.
So I just need to type in here.
System that out that princeling.
And then inside the practices I can just refer to the name of my object and then I need to put in a
semi-colon at the end of my statement.
So now if I run my project as you can see it's going to actually output this value to the console OK.
I specify that if the number of digits is less than 8 The output will be padded on the left.
So here as you can see I specified that if the number of digits is less than 8 The output will be padded
on the left with zeros.
OK.
So as you can see here this number here none.
Ninety eight is less than 8 digits.
OK so now the output is padded on the left with zeroes OK.
So here if we actually change this number to ninety eight 45 67 89.
And if I had on my project again as you can see now this value is output to the console.
OK but if we actually change this number to for example 98 45.
Now it's going to actually put this value here.
OK.
Now these are value.
This number is less than 8 digits.
So these the output is now actually padded on the left with zeroes OK.
So hopefully that makes sense.
Now let me actually show you another example.
So first I need to refer to the name of the Student class the name of my object is as is the art.
And then I put in an assignment operator here is three in that format.
And here I need to specify the formatting instructions for my object.
I just type in person minus 15 s percent minus 15 s person s Ok.
Now I need to specify the arguments.
So the first argument is first column the second argument is second column and the first one is first
column
OK.
And then I need to put in a semicolon at the end of my statement.
Now you want to output this right to the console.
So I just need to type in here system that out that princeling and then inside the practices I just
need to refer to the name of this object as the are two.
And now if I had on my project let's see what happens.
As you can see it's can actually be added with these values to the console OK.