LoslegenKostenlos loslegen

Assigning numbers

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

Diese Übung ist Teil des Kurses

Introduction to Java

Kurs anzeigen

Anleitung zur Übung

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

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

class NumericalDeclarations {
    public static void main(String[] args) {
    
        // Declare and assign variables
        int itemCount = ____;
        ____ totalPrice ____ ____;
    }
}
Code bearbeiten und ausführen