Wednesday, April 3, 2019

Java(2)---LEARN JAVA: VARIABLES

LEARN JAVA: VARIABLES

What this lesson is about...
Introduce these built-in types and more: 
   types of these variables are intdouble, 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, The double 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 or false.
  • 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 Strings, which are objects, instead of primitives. Strings hold sequences of characters
What I learned in this lesson...

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