Ah. It is not possible to add something to index X unless there are X items in the vector.
So if you want to add something to index 3, and there are no other items in the vector, you have no other choice than to add something (possibly null) to index 0, 1 and 2.
However, it sounds like you have a set number of elements, so why not use an array?
Code:
Car[] saveVehicles = new Car[4];
if(option1){
Cars Car1 = new Car(...);
saveVehicles[0] = Car1;
}
if(option2){
Cars Car2 = new Car(...);
saveVehicles[1] = Car2;
}
if(option3){
Cars Car3 = new Car(...);
saveVehicles[2] = Car3;
}
if(option4){
Cars Car4 = new Car(...);
saveVehicles[3] = Car4;
}
Edit: I said vector instead of array in my last sentence, how silly of me.