Array of Arrays Java

Array of Arrays Java

Array of Arrays: It is not new to a C/C++ programmer about array of arrays. He knows well that a 2D array is nothing but array of one-dimensional arrays. Of course, Java also means the same.

2D arrays are clearly discussed in: Two-Dimensional Arrays (Array of Arrays)

Anyhow, as another example on Array of Arrays, herewith given two-dimensional string array (array of string arrays).

Array of Arrays

A nested for loop is used to print the elements.

All array operations are available with All Array Operations at a Glance.

Leave a Reply

Your email address will not be published. Required fields are marked *