View RSS Feed

Java Array

Java arrays.

  1. Two-Dimensional Arrays

    by , 03-04-2012 at 11:23 AM
    2 dimensional arrays are known to be the array of arrays. Number of array types is present, for example:

    1. Array of Strings
    2. Array of ints
    3. Array of Objects



    Array of int consists of type int[]. Two dimensional array will have int[][]. It might also be known as array of arrays of the ints. Such type of arrays are known as 2D arrays.

    Command:
    int[][] array = new int[5][6];
    Array or variable of type int[][] gets declared. Variable ...