Transcript for:
Understanding Variables and Data Types in Java

hey guys welcome back starting basic java tutorial series so this is part two and for today we are going to talk about the variables and data types right after this intro so guys and tutorial flown out and for today on variables identifiers then we are going to declare variables assign variables then print those variables concatenation and then lastly for today it is called the sentence builder challenge so don't worry madali my integers develop minimum variables in a substitute done so my variables are adding programming so on variables computer programming i need nothing storytime temporary data to be used in our programs run time so only temporary data and during our programs run time so guys which holds a set of characters or ma i don't know phrases or [Music] 147 million eighty three thousand six hundred forty eight two gangnam so buru whole numbers long enough so one two three four five six seven eight nine ten negative one negative two zero so your floating point guys decimal is not in so three point one three point fifteen so negative three point fifteen positive three point fifteen so you might get on so end up in a carbon name of the variable that the programmer indicated it is used to read and write to the variable so by the time agreed and write gameto identifiers identifiers though you cannot use any special characters other than underscore so so you cannot also use white spaces as a special character then and spaces so [Music] identifier than equals may value again so ebooks have been packed declaring declaring variables so for example string name david david string let's that java but you display that but run variables and data type that java you and jen okay then there's something wrong okay i think run okay so again templates proposals gonna check and uncheck me and then check your java proposals or you can just click restore defaults the top around my checking java proposals but so make sure you're not checked on java proposals okay then apply and close now [Music] a [Music] console the by hello world then display nothing last time in a man we can display a variable's value by indicating its identifier inside the parenthesis apparently is hello world a number in number then five then number and the bus is five so that's young so let's try that starting eclipse of joining strings together with the plus operators [Music] or on the print statement meaning there's a system that out that print line so paramas magazino di to tiestatting eclipse so he did it and so for example marantai and david the next system that out the print line tyre so by [Music] so guys our challenge for today is titled sentence builder challenge so madali lento so create a program that will only require the programmer to change the variable values in order to create a dynamic sentence using the sentence in the sample output ps you bolt down the words indicates a variable so meaning sample outputs a concatenation so you will use concatenation detail so make it a sample output nothing hi my name is david sdpt i am 24 years old my gpa is 2.25 and my blood type is oh so my own guys variable so meaning hi my name is x ganon i am x years old my gpa is x my blood type is x so and my again variables so hi my name is alina sdpt i am 12 years old my gps is 1.0 my blood type is a b so going on so use a proper a word is hi my name is david sdpt i am 24 years old my gpa is 2.25 my blood type is oh so you're sipping the blood type dpt 18 years old or 24 years old yeah then my own easy system that the print line and attention system that out the print line i am name then i am years old so yeah my daniel i am age plus years old then next to mine my gpa is gpa and lastly yet so my blood type my blood type is blood type so it is i am 24 years old my gpa is 2.25 my blood type is oh so i am palette and i am a linear sdpt my blood type is a my gpa is 1.0 then my age is 18 years old okay i am a linear stupidity i am 18 years old my gpa is 1.0 and my blood type is a so challenging guys i hope number one and i hope not fully understand you know comparison variables and data types so inland guys thank you for watching this video and as always guys you can always comment down below or message us on facebook alright so okay guys again thank you for watching and i hope name is always i will see you in the next video goodbye you