Let's say I have a class called myClass<K,V>.
In my class I have an ArrayList called myArrayList.
How would I go about placing something of type V into a certain spot in the array list.
For example, trying something like myArrayList[place] = vThing doesn't seem to work.
Here's the declaration:public ArrayList<V> myArrayList[];. I added myArrayList.add(place, value); , but I'm getting an error that says "cannot invoke add(int, V) on the array type ArrayList[]".
I get it now, I was thinking that an arraylist would work like an array, but it appears as though is works more like a list.