It is possible to do variable length columns such as:
private int k[][] = new int[3][];
for(int i = 0; i < k.length; i++) {
k[i] = new int[i+1];
}
I was wondering if it was possible to do variable length rows, if you know the length of a column?:
private int k[][] = new int[][5];
for(int i = 0; i < k.length; i++) {
// How would you do this?
}
Thank you.