minNumColumns

Assumes that the 2-D array can be ragged. Returns the number of columns necessary that would cause the array to not be ragged. In other words, the minimum number of columns to make the array an un-ragged array (matrix) where all row arrays have the same number of elements.

Return

the minimum number of columns in the array

Parameters

array2D

the array to check, must not be null