LEARN JAVA: VARIABLES
What this lesson is about...
Introduce these built-in types and more:
types of these variables are
int, double, and boolean- ints hold positive numbers, negative numbers, and zero. They do not store fractions or numbers with decimals in them. (Declares a variable)
- To declare a variable of type
double,Thedoubleprimitive data type can help.doublecan hold decimals as well as very large and very small numbers. booleanvalues help navigate decisions in our programs. Answered with a boolean, a type that references one of two values:trueorfalse.- The
chardata type can hold any character, like a letter, space, or punctuation mark.
Expected Grades:
The
char data type can hold any character, like a letter, space, or punctuation mark.- use
Strings, which are objects, instead of primitives. Strings hold sequences of characters
clearspan style="font-size: large;">NOTES: The differences between the Integer and String objects in Java are: Integer can be converted to String, but String cannot be converted to Integer. Integer is a numeric value and String is a character value represented in quotes.
What I'm doing tomorrow...
I will be moving onto the next lesson which is LEARN JAVA: MANIPULATING VARIABLES
No comments:
Post a Comment