GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Flussdiagramm

Understanding Declarations

Olivia B Englisch

Inhalt des Flussdiagramms

  1. ARRAYS

  2. int num[] = {2,4,6,8,10};

  3. This array has 5 elements, of int type, indexed from 0 to 4 (n-1)

  4. at index 0 = 2

    at index 1 = 4

    at index 2 = 6

    at index 3 = 8

    at index 4 = 10

  5. String dogs[] = new String[4];

  6. This array, "dogs," has 4 elements of type String. Lets assign values to the array

  7. dogs[0] = "shepherd";

    dogs[1] = "dalmatian";

    dogs[2] = "beagle";

  8. Because the last index (3) was not assigned a value, the statement dogs[3] references a value of null

  9. An array is declared and initialized in one step

  10. Shows the elements located at each index

Informationen

Beschreibung
Flussdiagramm am Understanding Declarations, erstellt von Olivia B am 01/06/2018.
Erstellt von
Olivia B
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck