Variables and Types
Primitives, Strings, final, and basic operators.
What you will learn
- Declare typed variables
- Use String concatenation
- Know int vs long vs double
java
int count = 3;
double price = 9.99;
String title = "Widget";
final int MAX = 100;
System.out.println(title + " costs " + price);Try it yourself
Declare variables for a product SKU, quantity, and unit price; print total.
