Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Multidimensional Java Array

class multiDimensionalArray
{
    public static void main(String args[])
    {
  
        int multiDimensional[][] = { {1,2,3},{4,5,6},{7,8,9} };
 
        for (int i=0; i< 3 ; i++)
        {
            for (int j=0; j < 3 ; j++)
                System.out.print(multiDimensional[i][j] + " ");
 
            System.out.println();
        }
    }
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Multidimensional #Java #Array
ADD COMMENT
Topic
Name
1+7 =