I have always had this one issue with arrays of ArrayLists. Maybe you can help.
//declare in class private ArrayList[] x; //in constructor x=new
ArrayList>[] x; x=(ArrayList extends Integer>[]) new ArrayList>[10]; x[0] = new ArrayList(1);