Matrixabmessungen

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);
    }
}
Breakable Boar