Hi there, I have some code which is basically like this
But then, since it doesn't know there is an int called x in said arraylist it won't work... I know I could just do what i am trying to do for each individual ArrayList but having something like that method would be a lot easier. Does anyone know how do do this?
public void changeX(ArrayList a)
{
for(int i = a.size() - 1; i >= 0; i--)
{
a.get(i).x = a.get(i).x + 10;
}
}


