Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Matrix Dimensions

public class MatrixDimensions {
    public static void main (String[] args){
        int[][] m = {
                { 1, 2, 3 },
                { 1, 2, 3, 4},
        };

        System.out.println(m.length);
        System.out.println(m[0].length + m[1].length);
    }
}
 
PREVIOUS NEXT
Tagged: #Matrix #Dimensions
ADD COMMENT
Topic
Name
8+8 =