So I'm currently supposed to write a method that takes a 2D Array as input and return a 1D Array. The problem is that I have trouble inputting a 2D Array to even test what I want to do.
That is the method.
public static int[] flatten (int[][] input)
flatten(null);
When I try to insert an example this is what it is supposed to look like: flatten([[1,2,3],[4,5,6]])
But then I get the error that "the left hand of an assignment must be a variable"?