So as you can see here first I put that person's character.
And then I specified the precision here thought free.
This means that my value is going to accept the free decimal digits.
OK.
And then the type of My value is float.
OK.
So first I put the percent challenger here and then I specified My number of decimal digits.
And then I specified the type of my value OK.
And then I put a new line character here.
And as you can see here here we need to specify our arguments.
So now I can actually specify a floating point number.
For example to point fifty six.
OK.
And then I need to put in a semi-colon at the end of my statement.
And now if I want to output the value of this float string object to the console I just need to type
in here systemd thought out that print to learn and then inside the prentices I just need to refer to
the name of my object float.
And then I need to put in a semi-colon at the end of my statement.
And now if I get on my project as you can see it's going to actually output this value to the console
a floating point number which free decimal digits.
OK two point five six zero as you can see our number was two point fifty six.
But because I specified that my value is going to accept Frida's free the single digits.
It actually put a zero here.
OK so now let me try to show you another example.
So first of all let me actually comment out these lines of code here.
So again it referred to the name of the String class as strange and the name of my object is floats
as strange too.
And then I need to put in an assignment operator here.
And then again I refer to the name of the String class as three in that format.
So first I need to specify the formatting instructions for my object here.
As you can see it need to actually put a value of type A string.
Ok a string format.
OK so I just need to put in two double quotes here.
And that inside the double quotes I can specify the formatting instructions so I can just type in here.
A floating point number 10 decimal digits.
And then I put in a call on here.
And then again I put in the percent character here.
Point 10 F. OK.
And then I put in a new line character here.
OK.
And for the arguments I just need to put in a floating point number for example three point seventy
eight and then I need to put in a semi-colon 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 a system that outs
that princeling line and then inside the prentices.
I just need to refer to the name of my float string to 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 output this value to the console.
So as you can see here.
So as you can see here it put ten decimal digits here.
OK so now let me actually to show you another example.
So first let me ask you to comment out these lines of code here.
So here again I referred to the name of the string class as strange value OK.
And then I put in an assignment operator here.
And then again I refer to the name of this thing class that format.
OK.
So remember that this for my benefit is a classmate for the K because we are calling this an method
on this string class.
OK.
So here as you can see we need to specify the formatting instructions of our object.
So here I just need to put into double quotes and then I can just typing as I think colon and then I
need to put in the person character here.
And now I want to specify the type of the object that will be formatted in the output.
OK.
Percent.
Yes.
So the type of My object is a string.
OK.
And here for the arguments I need to actually putting a string object.
So I just need to put into double quotes and inside double quotes.
I can just put in for example high.
And then I need to put in a semicolon at the end of my statement.
And now I want to output the string value object to the console.
OK.
System that out that print line and then inside Apprentice's I can just refer to the name of the object
a string value and then I need to put in a semicolon at the end of my statement.
And now if I had on my project as you can see this value is now out to the console OK.
So for example here I specified that the type of the object that is going to be formatted is a string.
Ok so this is here means as I think.
But if we actually change this to D which is used for integer numbers and as you can see here I specified
that my object type is a string.
OK.
So as you can see here I specify that my object type is going to be integer.
But here I put a strange value and if I get on my project now is it's going to actually show us an error
exception in Fred Maine.
This is a runtime error.
OK.
And this means that our codes have a problem and we need to fix our problems in order to fix this issue.
So as you can see here.
First of all we specified that the type of the object that is going to be formatted is of type integer.
But here we put us through in value and this is rank.
Even if you actually put an integer number for example number five.
And now if I don't my project is going I should put this value to the cost.
OK so now let me try to change this to S and here I put in the word high here.
OK.
So now let me actually show you another example.
So first let me actually comment out this line of code here and now I want to actually create another
object.
So first I need to refer to that name of the String class as the range and the name of my object is
multiple string values.
OK.
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.
So first I need to specify the formatting instructions of my objects that is going to be output to the
console.
I put into double quotes and here.
First of all I just type in a strange colon person s ok and I put a space here and then here I just
type in integer colon percent D.
And then again I put another space here.
Float Colan percent character F..
OK.
So here as you can see we've got three different types for free different arguments.
Ok so.
So here we need to actually specify free different arguments for these three different types.
OK.
That we specified here.
So here we need to actually put in our arguments.
So for the first one for the first argument we need to actually putting in a strange value for example.
Hello and for the second type we need to putting an integer number.
For example fifty eight and for the first type we need to put in a floating point number.
For example five point four.
OK.
And then we need to put in a semi-colon at the end of my statement.
OK.
And now I want to output this value to the console OK.
So here I just need to typing system that out that princeling.
And then inside the prentices I can just revert to the name of my object multiple
values and that I need to put in a semicolon at the end of my statement.
And now if I had on my project as you can see it's going to actually output these values to the console
S3.
Hello As you can see here estrange.
Hello.
Integer fifty eight and float five point as you can see here.
It actually puts 1 2 3 4 5 6 decimal digits 6 decimal digits for our floating point number as you can
see we didn't specify the decimal digits for our floating point numbers.
So it actually put 6 decimal digits for our floating point number.
OK.
And now let me actually show you another example.
So now I just need to refer to the name of the string class a string and the name of my object is for
example s t r value 1.
And then I need to put in a semicolon here 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 I just need to put in here to double quotes and inside the double codes I can specify the formatting
instructions.