int i = 0;  while (i < this.getNumOrders()) { TrainOrdersModel order = this.getOrder(i);  if (order.getStationNumber().equals(stationNumber)) { this.removeOrder(i); } else { i++; } }
while (!orders.isEmpty()) orders.remove(0);
    public void removeAllStopsAtStation(ObjectKey stationNumber) {        int i = 0;        while (i < this.getNumOrders()) {            TrainOrdersModel order = this.getOrder(i);            if (order.getStationNumber().equals(stationNumber)) {                this.removeOrder(i);            } else {                i++;            }        }    }