My background is C, so Java generics is new to me. Here, I use ArrayList as an example. Is the 1st declaration better than the 2nd? Or what situation is better suited for the 1st declaration and what other situation is better suited for the 2nd?
ArrayList<String>[][] list = new ArrayList[5][5];
ArrayList<String> list2 = new ArrayList<ArrayList(String)>();
