ArrayList<ArrayList> liste = new ArrayList<ArrayList>();
eclipse saying :
ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
The list should be containing some strings and some integers. So what I should write is ArrayList<ArrayList<MyClass>> to get rid off the warning. The problem is I dont know how to write MyClass since all ArrayList<MyClass> may not contain the same number of element :
[ [france paris 10000 jean jacques pierre] [usa washington 120000 james jack] ]
[ [string1 string2 int string3 string4 string5] [string1 string2 int string3 string4] ]
As you can see, 2nd arraylist has 1 member less than 1st. So how to write MyClass?