How to initialise the below 2D static array ? The following works:
static int[][] arr = { {1,2}, {3,4} };
static int[][] arr = new int[][]{ {1,2}, {3,4} };
but what if I want to initialise with a larger data maybe using a for loop ?
class Abc {
static int[][] arr;
}