Workbook 1c, pp. 46-49 — Every variable needs a type
Type Details
←
Click any data type to see its full details, range, and common mistakes
Memory Comparison (bytes)
💡Pro Tip:
When in doubt, use int for whole numbers and double for decimals.
These are Java's default numeric types and what you'll use 90% of the time.