Variables
Multiple variables can be declared on the same line:
int total, count, sum;
Variables can be initialized (given an initial value) in the declaration:
int total = 0, count = 20;
float unit_price = 57.25;
See Piano_Keys.java
Previous slide
Next slide
Back to first slide
View graphic version