0
How to declare an integer variable and set it's value to 9
12 Answers
+ 1
What language?
+ 1
Java
+ 1
What about to 5
+ 1
int age = 9;
+ 1
Thanks
0
The int means integer, or number
0
The age is the name of the variable
0
You can change 9 to another number
0
And the ; is like a full stop in sentence.
0
No problem
0
Yes, a whole number :)
0
A float is a decimal