What I want to do is have a vector and in each position of the vector (cell) have a queue (array type queue) The error gives me in the sentence: Vector [0] .meter (111);
The problem is that you have not instantiated the objects in your array, they are null. Then you are trying to access the null method, hence the NPE. You would have to first instantiate them. Something like this:
Cola[] vector = new Cola[a];
for(int x = 0; x < a; x++) {
vector[x] = new Cola();
}
After that you could do whatever you wanted