Assigning numbers
Assigning variables is a crucial skill for your workflow. Time to practice it some more!
Cet exercice fait partie du cours
Introduction to Java
Instructions
- Assign
itemCount
the value of3425
. - Declare the
totalPrice
variable using the correct primitive type and assign the value of11999.99
.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
class NumericalDeclarations {
public static void main(String[] args) {
// Declare and assign variables
int itemCount = ____;
____ totalPrice ____ ____;
}
}