simple jagged array program in java code example
Example: jagged array java
int[][] numbers = new int[7][];
// row 0 gets 5 columns
numbers[0] = new int[5];
// row 1 gets 11 columns
numbers[1] = new int[11];
// etc...
int[][] numbers = new int[7][];
// row 0 gets 5 columns
numbers[0] = new int[5];
// row 1 gets 11 columns
numbers[1] = new int[11];
// etc...