@Override
   public DataObject getVehicleDataObject(int vehicleId) throws VehicleOutOfBoundsException
    {
        int vehicleIdToSearch = vehicleId;
        int vehicleFound = 0;
        DataObject vehicleDataObject = new DataObject();
        int currentVehicleId;
        int currentVehicleArrivalTime;
        int currentVehicleDepartingTime;
        
        int i = 0;
        
        if(vehicleId <= vehicles.length)
        {
        while(i <= vehicles.length && vehicleFound == 0)
        {
            Vehicle currentVehicle = vehicles[i]; 
            currentVehicleId = currentVehicle.getVehicleId();
            currentVehicleArrivalTime = currentVehicle.getArrivalTime();
            currentVehicleDepartingTime = currentVehicle.getDepartingTime();
            
            if(vehicleIdToSearch == currentVehicleId)
            {
                vehicleFound = 1;
                vehicleDataObject.setVehicleId(currentVehicleId);
                vehicleDataObject.setArrivalTime(currentVehicleArrivalTime);
                vehicleDataObject.setDepartingTime(currentVehicleDepartingTime);
            }
            i++;
        }
        
        return vehicleDataObject;
        }
        else
        {
            throw new VehicleOutOfBoundsException("That ticket # does not yet exist!");
        }
    }