Tuesday, April 26, 2016

[Java] 2D Array ND Array Related

1. Create a 2D array with known

Try the following:
int[][] multi = new int[5][10];
... which is a short hand for something like this:
int[][] multi = new int[5][];
multi[0] = new int[10];
multi[1] = new int[10];
multi[2] = new int[10];
multi[3] = new int[10];
multi[4] = new int[10];



No comments:

Post a Comment