I have declared below list:
List<int>[][] main=new List<int>[4][];
main[0]=new List<int>[3];
I am getting error "Object reference not set to an instance of object", if I try to add element using below statement:
main[0][0].add(3);
Can you please let me know what's wrong with the statement and the equivalent correct statement ?