Say I have an array:
private GamePiece[][] board = new GamePiece[4][5];
How would I get the length of the row or column? If I wrote: board.length in a for loop, which length is it gonna give me, 4 or 5?
private GamePiece[][] board = new GamePiece[4][5];
How would I get the length of the row or column? If I wrote: board.length in a for loop, which length is it gonna give me, 4 or 5?