

Foreach with a variable.

    This is ArrayList element 1.
    1
    This is ArrayList element 2.
    2
    This is ArrayList element 3.
    3
    This is ArrayList element 4.
    4

    -- inner foreach --
            This is ArrayList element 1.
        1
            This is ArrayList element 2.
        2
            This is ArrayList element 3.
        3
            This is ArrayList element 4.
        4
        -- inner foreach --

    -- outer foreach --
    This is ArrayList element 1.
    1
    -- outer foreach --
    -- inner foreach --
            This is ArrayList element 1.
        1
            This is ArrayList element 2.
        2
            This is ArrayList element 3.
        3
            This is ArrayList element 4.
        4
        -- inner foreach --

    -- outer foreach --
    This is ArrayList element 2.
    2
    -- outer foreach --
    -- inner foreach --
            This is ArrayList element 1.
        1
            This is ArrayList element 2.
        2
            This is ArrayList element 3.
        3
            This is ArrayList element 4.
        4
        -- inner foreach --

    -- outer foreach --
    This is ArrayList element 3.
    3
    -- outer foreach --
    -- inner foreach --
            This is ArrayList element 1.
        1
            This is ArrayList element 2.
        2
            This is ArrayList element 3.
        3
            This is ArrayList element 4.
        4
        -- inner foreach --

    -- outer foreach --
    This is ArrayList element 4.
    4
    -- outer foreach --

