linked List stuff that is hard for me and i need help with

okay i made this arrayList made up of LinkedLists as printed below. Problem is when i add stuff to them as shown in my STUFF FOR ADDING section, it just simply dosent add anything cause whin I print with System.out.println(listOfLists); it's all just empty. can anyone help me with this?

ArrayList listOfLists = new ArrayList();

for (int ix = 0; ix < numBehaviors; ix++) {

listOfLists.add(new LinkedList());

}

STUFF FOIR ADDING

((java.util.List) listOfLists.get(0)).add("hi");

((java.util.List) listOfLists.get(1)).add("this");

((java.util.List) listOfLists.get(2)).add("is");

((java.util.List) listOfLists.get(2)).add("a");

((java.util.List) listOfLists.get(2)).add("test");

[747 byte] By [seanbnea] at [2007-9-30 2:21:15]
# 1
prints "[[hi], [this], [is, a, test]]" for me. the problem has to be in the code you haven't posted.
jsalonena at 2007-7-16 13:30:27 > top of Java-index,Archived Forums,Java Programming...