ComenzarEmpieza gratis

Assigning numbers

Assigning variables is a crucial skill for your workflow. Time to practice it some more!

Este ejercicio forma parte del curso

Introduction to Java

Ver curso

Instrucciones del ejercicio

  • Assign itemCount the value of 3425.
  • Declare the totalPrice variable using the correct primitive type and assign the value of 11999.99.

Ejercicio interactivo práctico

Prueba este ejercicio completando el código de muestra.

class NumericalDeclarations {
    public static void main(String[] args) {
    
        // Declare and assign variables
        int itemCount = ____;
        ____ totalPrice ____ ____;
    }
}
Editar y ejecutar código