¡GoConqr estrena diseño! Cuéntanos qué te parece.

Diagrama de flujo

Understanding Declarations

Olivia B Inglés

Contenido del diagrama

  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

Información

Descripción
Diagrama sobre Understanding Declarations, creado por Olivia B el 01/06/2018.
Creado por
Olivia B
Visitas
2
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?