Hi,
I can make a simple initialization work like this:
Object[,] ONE_ROW = {{"Vodafone", "55501601001970 16"}};
But, now I want to create another array that consists of multiple copies of ONE_ROW like this (will not compile):
Object[,] TWO_ROWS = {ONE_ROW, ONE_ROW}; // Works in Java ;-)
This yields "Incorrectl y structured array initializer"!!
This, however, is a correct implementation using hard-coded data:
Object[,] TWO_ROWS = {{"Vodafone", "55501601001970 16"}, {"Vodafone", "55501601001970 16"}};
Any ideas?
Regards,
Dadi.
I can make a simple initialization work like this:
Object[,] ONE_ROW = {{"Vodafone", "55501601001970 16"}};
But, now I want to create another array that consists of multiple copies of ONE_ROW like this (will not compile):
Object[,] TWO_ROWS = {ONE_ROW, ONE_ROW}; // Works in Java ;-)
This yields "Incorrectl y structured array initializer"!!
This, however, is a correct implementation using hard-coded data:
Object[,] TWO_ROWS = {{"Vodafone", "55501601001970 16"}, {"Vodafone", "55501601001970 16"}};
Any ideas?
Regards,
Dadi.
Comment