question: public String constructTrainNumberOfCars ( String trainName ) throws IOException { Train train = tm . getTrainByName ( trainName ) ; if ( train != null ) { return String . valueOf ( train . getNumberCarsInTrain ( ) ) ; } sendErrorStatus ( "ERROR train name doesn't exist " + trainName ) ; return null ; }
target:  constructs a String containing the number of cars in a train