Okay, in Java, we have the variables and the data types. variables is less a container to store some values. And then a data type is the type of values to be storing the variable. So let's say the variable can be Sai heavy, no have some values of the, say integer data type, or the float data type or the double data type, or have some string data or correct data type. So, to let's say, I want to create a variable. So I can do something like integer, say, integer w equals zero And indeed equal a six integer result equals w w plus e. k, maybe I try to print the result here okay, I run the project okay I had the value out of here.
So, integer W. So we have integer datatype here and then this is the variable or the variable name. So we have a variable that will contain or store the values of integer datatype So, data we will only be able to store those are numbers or those are integer we call those decimal points. So integer w equals zero, integer equals six. So integer result equals w plus E. So e will be zero plus six. So, result will be six. So when I print out the result, it will give me a six which is here.
So if I want to do some essay, I wonder values are to have some decimal point. So I have to change these to Alesia float. Maybe zero pi c 0.9. Okay, then hear you, bro. Maybe 6.3 Okay, so he showed me some error Okay, cost 0.92 for okay I can do something like this okay so I have flow here then this one Pauline flow result equals w e. So I run the program I shall get around 0.9 6.3 will be 7.2 so as you can see, for flow data type we can store values of our decimal values with decimal point if you want to start I see decimal point values with decimal point have a larger range of a larger number. Then we can use the double and he also da and yell so taba.
Hi Priya Ron and then ron paul Yeah. I shall get 7.2 okay so the see this is how the right our recreate our variables and data types in Java programming