mursaleen fayyaz

mursaleen fayyaz

  • NA
  • 84
  • 125.6k

2D array each row can have different size?

Jun 3 2013 10:54 AM
With a Jagged array, every row can have different sizes.

int[][] jagged = new int[3][];

jagged[0] = new int[2] {5,10};
jagged[1] = new int[5] {2,4,6,8,10};
jagged[2] = new int[3] {9,10,14};



Guys, any comment?

Answers (2)