I want to add a multidimensional Boolean Array to an ArrayList. How do I do that?
Below is an simple example:
public boolean[][] BooleanArray;
ArrayList<Boolean[][]> BooleanArrayList= new ArrayList<Boolean[][]>();
public void AddBooleanArrayToList(){
BooleanArrayList.add(BooleanArray);
}
However this example does not work. This error will prompt:
The method add(Boolean[][]) in the type ArrayList<Boolean[][]> is not applicable for the arguments (boolean[][])