You are viewing a single comment's thread. Return to all comments →
Hey, Can you explain why is this required!!
if (list[index] == null) { ArrayList myList = new ArrayList<>(); myList.add(y); list[index] = myList; }
Thanks
Seems like cookies are disabled on this browser, please enable them to open this website
Dynamic Array
You are viewing a single comment's thread. Return to all comments →
Hey, Can you explain why is this required!!
if (list[index] == null) { ArrayList myList = new ArrayList<>(); myList.add(y); list[index] = myList; }
Thanks