I create a list of lists like this:
List tmp = new ArrayList(2);
Then I\'d like to insert 10 to first sub-list as follo
You haven't added anything to the list yet. Declaring a List of any type with an initial capacity of 2 doesn't automatically populate that. You have to do that first.