I'm a noobie with java and i seem to be a little stuck with my 2d array.
I have a small class called piece, with many classes extended off it.
public class Piece
{
protected boolean[][] arr;
public void left(){}
}
in my left function i want to take arr[l][h]; and change it to arr[h][l].
is there like a pre existing java command to get the actual size of the array at stake. or do i have to make some sort of get function?
i really just want to get a variable (int) Length = arr[l]; and Height = arr[*][h]