|
Fundamentals of Programming with Java - All programming languages share common traits - Java in particular is an Object Oriented programming language - Everything can be represented as an Object (think of of nouns in the English language) - a Chair, a Desk, a Person, a User etc. Variables - What is a variable? - In computer programming, a variable is a storage location and an associated symbolic name which contains some known or unknown quantity or information, a value. - cryptic, here's what it really means: - Store information for later use, and store it in a way that you can reference it - this is known as a variable name! - variable name is just a word, a word that represent's what you're storing - if you go to a website, website asks for your name, you type it in, boom that's a variable Variables have Types - String - store a regular sentence (alphanumeric - numbers and letters) - Integer - Whole numbers on (no decimals) - Double - Number with decimals (about 16 significant figures) - Float - Number with fewer decimal places than Double (about 8 significant figures) Your Homework http://howtoprogramwithjava.com/programming-101-the-5-basic-concepts-of-any-programming-language/ |