Hi

Explain to me please. Why from code

// Declare and create two dimensional int array whose size is 10 by 5
        int[][] ages = new int[10][5];

        // Display the number of rows and columns
        System.out.println("ages.length = " + ages.length);
        System.out.println("ages[1].length = " + ages[1].length);



ages.length will be 10 and ages[1].length will be 5? I thought that
lenght of array is 10*5

Cant undestand.  Help!

-- 
To post to this group, send email to javaprogrammingwithpassion@googlegroups.com
To unsubscribe from this group, send email to 
javaprogrammingwithpassion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to