filmov
tv
Java - Primitive Data Types - Boolean/Char Primitives - Mod 1, Les 1, Video 6 of 6

Показать описание
In this lesson you will learn:
1) The primitive data types, how to set literal values and their ranges
a) Whole numbers: byte, short, int, long
b) Decimal-point numbers: float, double
c) Misc.: boolean, char
2) Best practices for when to use certain primitive data types
a) You should almost always use int for whole numbers (unless keeping track of a unique ID, then use long)
b) You should almost always use double for decimal-point numbers
a) Formatting decimal numbers with a certain number of digits after the decimal point
b) Formatting numbers with thousands separators
c) Formatting numbers to scientific notation
4) To use the Scanner to read user input from the console into variables of any of the primitive data types
5) The binary number system and how numbers are mapped to 0's and 1's