/** * Get station with given id or null if no such station is found in this manager * * @param id the id of this station * @return station with given id or null if no such station is found */ public Station getStationWithId(String id) { Station station = null; for (Station this_station : stations) { if (this_station.getID().equals(id)) { station = this_station; } } return station; }