getColumns

public int getColumns()

This returns the number of columns of the Matrix, as determined by the length of the first Array in the 2D Array. If the Matrix/2D Array is not rectangular, issues arise.

Return

returns the number of columns in the Matrix