GoConqr has a new look! Let us know what you think.

Flowchart

Understanding Declarations

Olivia B English

Flowchart content

  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

Information

Description
Flowchart on Understanding Declarations, created by Olivia B on 01/06/2018.
Created by
Olivia B
Views
1
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?