Try looping through a Vector using the size() method rather than thecapacity() method. Hope this helps.while(i < carVector.size()) {