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,
Thedouble
primitive data type can help.double
can hold decimals as well as very large and very small numbers. boolean
values help navigate decisions in our programs. Answered with a boolean, a type that references one of two values:true
orfalse
.- The
char
data 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
String
s, 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