Let say I have the following field
private String[] myString;
and later on in the code fill this array with values from another array
String[] s = {"x", "y", "z"};
myString = s;
yes - that was very easy. No need to allocate memory with the new operator and specify the length in advance. But now - let say that myString has two dimensions:
private String[][] myString;
And I want to assign s to MyString. Is it possible to do it in a similar manner - in other words - without allocate memory and loop through the arrays.
(There should be only one column in myString[][] - this is because a constructor to another class demands that)
{{"a","b"},{"c","d"}}doesn't work? I thought it should.