public int findStationIndex ( String id ) { for ( GempakStation station : getStations ( ) ) { if ( station . getSTID ( ) . equals ( id ) ) { return station . getIndex ( ) ; } } return - 1 ; }
Find the station index for the specified station id .